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 36 4 10 12.0 18.0 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 33 4 9 12.0 17.7 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 162 26 75 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 143 25 67 44.5 49.5 1,653,338 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,942 180 2 75,030 1 37,515 osh-native
parse.abuild 9 1 2 2.4 7.9 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 30 0 2 2.1 8.0 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 2 2.1 7.5 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 10.8 8.7 1,006,005 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 180 0 4 10.8 8.4 1,006,004 15,258 21 50,000 0 3,842 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 22 1 2 2.8 8.5 116,318 277 3 85,124 1 42,562 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 3 3 1.6 dash -
24 23 0 3.0 bash -
107 67 45 3.3 zsh -
16 12 4 28.5 bumpleak/osh mut
19 12 8 29.3 _bin/cxx-opt+bumproot/osh mut
23 23 0 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 26 4 25.2 osh-native mut+alloc
32 20 12 25.7 osh-native mut+alloc+free
36 32 4 18.0 osh-native mut+alloc+free+gc
37 22 15 17.8 osh-native mut+alloc+free+gc+exit
44 16 28 32.3 _bin/cxx-opt+nopool/osh mut+alloc
48 41 7 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 8 20 24.9 osh-native-souffle mut+alloc
29 18 11 25.2 osh-native-souffle mut+alloc+free
33 25 8 17.7 osh-native-souffle mut+alloc+free+gc
35 26 9 17.7 osh-native-souffle mut+alloc+free+gc+exit

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
21 18 4 1.4 dash -
78 77 0 3.3 bash -
380 228 174 3.4 zsh -
48 40 8 84.9 bumpleak/osh mut
61 49 12 84.5 _bin/cxx-opt+bumproot/osh mut
71 47 24 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 55 43 73.4 osh-native mut+alloc
106 69 36 75.2 osh-native mut+alloc+free
162 146 16 49.8 osh-native mut+alloc+free+gc
161 137 24 50.4 osh-native mut+alloc+free+gc+exit
138 79 59 99.2 _bin/cxx-opt+nopool/osh mut+alloc
223 175 48 67.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 60 28 73.1 osh-native-souffle mut+alloc
97 48 48 75.0 osh-native-souffle mut+alloc+free
143 135 8 49.5 osh-native-souffle mut+alloc+free+gc
147 127 20 50.1 osh-native-souffle mut+alloc+free+gc+exit

parse.abuild

Parsing abuild from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
2 2 0 1.4 dash -
6 3 3 3.0 bash -
8 0 7 3.1 zsh -
6 3 3 10.9 bumpleak/osh mut
7 7 0 12.5 _bin/cxx-opt+bumproot/osh mut
9 9 0 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 9.8 osh-native mut+alloc
9 4 4 10.0 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
10 9 0 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.6 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
9 9 0 7.9 osh-native-souffle mut+alloc+free+gc
9 9 0 8.0 osh-native-souffle mut+alloc+free+gc+exit

ex.compute-fib

A synthetic benchmark for POSIX shell arithmetic.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
11 7 3 1.3 dash -
29 29 0 2.9 bash -
24 20 4 3.3 zsh -
19 14 5 31.6 bumpleak/osh mut
28 27 0 33.1 _bin/cxx-opt+bumproot/osh mut
29 25 4 31.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 21 16 26.5 osh-native mut+alloc
38 27 12 26.7 osh-native mut+alloc+free
30 25 4 8.0 osh-native mut+alloc+free+gc
29 29 0 8.0 osh-native mut+alloc+free+gc+exit
55 34 21 36.2 _bin/cxx-opt+nopool/osh mut+alloc
38 34 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 22 9 26.0 osh-native-souffle mut+alloc
31 12 19 26.0 osh-native-souffle mut+alloc+free
22 22 0 7.5 osh-native-souffle mut+alloc+free+gc
22 22 0 7.6 osh-native-souffle mut+alloc+free+gc+exit

ex.bashcomp-parse-help

A realistic bash-completion workload.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
73 73 0 3.3 bash -
171 106 65 56.5 bumpleak/osh mut
183 115 67 56.1 _bin/cxx-opt+bumproot/osh mut
198 133 65 57.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
215 127 87 48.3 osh-native mut+alloc
223 143 79 50.0 osh-native mut+alloc+free
184 116 68 8.7 osh-native mut+alloc+free+gc
184 108 76 8.9 osh-native mut+alloc+free+gc+exit
240 160 80 64.9 _bin/cxx-opt+nopool/osh mut+alloc
217 164 52 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
208 144 64 47.6 osh-native-souffle mut+alloc
215 143 71 49.6 osh-native-souffle mut+alloc+free
180 128 52 8.4 osh-native-souffle mut+alloc+free+gc
176 124 52 8.4 osh-native-souffle mut+alloc+free+gc+exit

ex.abuild-print-help

Running abuild -h from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
10 9 1 3.4 dash -
20 16 5 4.5 bash -
18 10 8 3.4 zsh -
18 11 7 11.2 bumpleak/osh mut
20 11 9 12.1 _bin/cxx-opt+bumproot/osh mut
23 11 12 15.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 10 12 11.1 osh-native mut+alloc
22 13 11 10.9 osh-native mut+alloc+free
23 16 7 9.0 osh-native mut+alloc+free+gc
24 13 11 9.2 osh-native mut+alloc+free+gc+exit
25 19 6 12.6 _bin/cxx-opt+nopool/osh mut+alloc
26 21 5 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 15 6 10.6 osh-native-souffle mut+alloc
22 14 8 10.7 osh-native-souffle mut+alloc+free
22 15 7 8.5 osh-native-souffle mut+alloc+free+gc
22 15 7 8.7 osh-native-souffle mut+alloc+free+gc+exit