Memory Management Overhead

Source code: oil/benchmarks/gc.sh

GC Stats

task elapsed ms max gc millis total gc millis allocated MB max rss MB num allocated num gc points num gc done gc threshold num growths max survived shell label
parse.configure-cpython 25 3 7 12.2 18.0 478,359 1,282 6 428,228 5 214,114 osh-native
parse.configure-coreutils 100 17 39 46.2 51.8 1,660,610 4,764 10 1,189,390 7 594,695 osh-native
parse.abuild 6 0 1 2.7 8.5 102,532 180 2 75,968 1 37,984 osh-native
ex.compute-fib 21 0 1 3.0 7.8 651,800 31,810 13 50,000 0 2,829 osh-native
ex.bashcomp-parse-help 111 0 3 12.3 8.6 1,077,990 27,375 23 50,000 0 3,938 osh-native
ex.abuild-print-help 13 0 1 2.9 9.1 117,524 477 3 85,988 1 42,994 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
4 4 0 1.6 dash -
16 16 0 3.2 bash -
52 32 24 3.6 zsh -
12 12 0 28.1 bumpleak/osh mut
15 10 5 28.7 _bin/cxx-opt+bumproot/osh mut
16 12 4 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 16 4 25.1 osh-native mut+alloc
22 17 4 25.5 osh-native mut+alloc+free
25 25 0 18.0 osh-native mut+alloc+free+gc
26 21 4 18.1 osh-native mut+alloc+free+gc+exit
28 20 8 33.1 _bin/cxx-opt+nopool/osh mut+alloc
35 30 4 22.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

parse.configure-coreutils

Parsing the autoconf-generated configure script from GNU coreutils.

Note that unlike other shells, osh -n retains all nodes on purpose. (See the parser benchmark).

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
15 15 0 1.7 dash -
55 55 0 3.4 bash -
177 123 65 3.6 zsh -
37 29 8 84.8 bumpleak/osh mut
45 40 4 86.0 _bin/cxx-opt+bumproot/osh mut
52 35 16 85.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
66 53 12 74.1 osh-native mut+alloc
74 46 27 76.0 osh-native mut+alloc+free
100 96 4 51.8 osh-native mut+alloc+free+gc
106 90 16 52.3 osh-native mut+alloc+free+gc+exit
93 74 19 100.1 _bin/cxx-opt+nopool/osh mut+alloc
146 122 24 69.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

parse.abuild

Parsing abuild from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
1 1 0 1.7 dash -
4 4 0 3.1 bash -
4 4 0 3.4 zsh -
4 4 0 12.2 bumpleak/osh mut
5 5 0 11.9 _bin/cxx-opt+bumproot/osh mut
5 5 0 10.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
5 5 0 10.1 osh-native mut+alloc
6 6 0 10.1 osh-native mut+alloc+free
6 6 0 8.5 osh-native mut+alloc+free+gc
6 6 0 8.5 osh-native mut+alloc+free+gc+exit
7 0 7 11.3 _bin/cxx-opt+nopool/osh mut+alloc
8 4 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

ex.compute-fib

A synthetic benchmark for POSIX shell arithmetic.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 7 0 1.7 dash -
21 21 0 3.0 bash -
15 15 0 3.5 zsh -
15 11 4 33.7 bumpleak/osh mut
20 19 0 35.7 _bin/cxx-opt+bumproot/osh mut
22 17 4 34.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 18 7 28.1 osh-native mut+alloc
29 25 4 28.6 osh-native mut+alloc+free
21 21 0 7.8 osh-native mut+alloc+free+gc
21 17 4 7.9 osh-native mut+alloc+free+gc+exit
38 34 4 38.8 _bin/cxx-opt+nopool/osh mut+alloc
29 25 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

ex.bashcomp-parse-help

A realistic bash-completion workload.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
50 46 4 3.2 bash -
101 81 20 58.5 bumpleak/osh mut
111 87 24 59.6 _bin/cxx-opt+bumproot/osh mut
120 104 16 60.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
130 105 24 50.5 osh-native mut+alloc
136 112 24 52.4 osh-native mut+alloc+free
111 83 28 8.6 osh-native mut+alloc+free+gc
110 90 20 8.7 osh-native mut+alloc+free+gc+exit
145 116 28 68.2 _bin/cxx-opt+nopool/osh mut+alloc
130 109 20 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

ex.abuild-print-help

Running abuild -h from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
5 4 1 3.6 dash -
12 8 3 4.6 bash -
9 9 1 3.6 zsh -
10 3 7 11.4 bumpleak/osh mut
12 11 1 12.0 _bin/cxx-opt+bumproot/osh mut
12 11 1 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
12 4 8 11.1 osh-native mut+alloc
13 7 5 11.1 osh-native mut+alloc+free
13 13 0 9.1 osh-native mut+alloc+free+gc
13 10 3 9.1 osh-native mut+alloc+free+gc+exit
14 10 5 12.4 _bin/cxx-opt+nopool/osh mut+alloc
15 11 4 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc