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 38 5 12 12.0 17.8 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 35 5 11 12.0 17.3 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 175 28 87 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 166 29 88 44.5 49.4 1,653,338 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 10 1 1 2.6 8.4 101,942 180 2 75,030 1 37,515 osh-native
parse.abuild 9 1 2 2.4 8.0 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 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.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 183 0 5 10.8 8.8 1,006,005 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 176 0 4 10.8 8.1 1,006,004 15,258 21 50,000 0 3,842 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 21 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
6 6 0 1.6 dash -
23 21 2 3.1 bash -
100 58 50 3.5 zsh -
17 10 7 28.1 bumpleak/osh mut
19 17 2 29.3 _bin/cxx-opt+bumproot/osh mut
23 16 7 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 20 10 25.2 osh-native mut+alloc
32 18 14 25.7 osh-native mut+alloc+free
38 31 7 17.8 osh-native mut+alloc+free+gc
37 31 6 18.1 osh-native mut+alloc+free+gc+exit
43 30 13 32.5 _bin/cxx-opt+nopool/osh mut+alloc
57 48 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 22 5 24.9 osh-native-souffle mut+alloc
29 20 9 25.4 osh-native-souffle mut+alloc+free
35 29 6 17.3 osh-native-souffle mut+alloc+free+gc
35 27 8 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 3 1.6 dash -
78 74 4 3.3 bash -
365 193 195 3.5 zsh -
49 40 9 84.0 bumpleak/osh mut
60 52 8 84.8 _bin/cxx-opt+bumproot/osh mut
71 66 5 85.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 63 33 73.4 osh-native mut+alloc
105 67 38 75.4 osh-native mut+alloc+free
175 151 24 49.7 osh-native mut+alloc+free+gc
191 170 21 50.5 osh-native mut+alloc+free+gc+exit
143 100 43 99.0 _bin/cxx-opt+nopool/osh mut+alloc
247 216 31 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 49 39 73.1 osh-native-souffle mut+alloc
96 64 32 75.0 osh-native-souffle mut+alloc+free
166 145 21 49.4 osh-native-souffle mut+alloc+free+gc
173 150 23 49.9 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 -
5 4 1 2.9 bash -
7 2 5 3.3 zsh -
6 5 1 12.1 bumpleak/osh mut
7 4 3 11.7 _bin/cxx-opt+bumproot/osh mut
8 5 3 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 3 5 10.0 osh-native mut+alloc
9 5 4 10.1 osh-native mut+alloc+free
10 7 2 8.4 osh-native mut+alloc+free+gc
9 7 3 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 3 9.7 osh-native-souffle mut+alloc
8 3 5 9.8 osh-native-souffle mut+alloc+free
9 7 3 8.0 osh-native-souffle mut+alloc+free+gc
9 3 7 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
10 10 0 1.6 dash -
29 28 1 2.8 bash -
23 17 6 3.1 zsh -
18 16 2 31.0 bumpleak/osh mut
26 19 7 32.7 _bin/cxx-opt+bumproot/osh mut
28 25 3 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 27 10 26.3 osh-native mut+alloc
38 28 10 26.5 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
29 26 3 7.7 osh-native mut+alloc+free+gc+exit
54 40 14 35.8 _bin/cxx-opt+nopool/osh mut+alloc
38 32 6 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 23 7 26.0 osh-native-souffle mut+alloc
31 20 11 26.3 osh-native-souffle mut+alloc+free
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc
22 19 3 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 68 5 3.1 bash -
167 113 54 56.8 bumpleak/osh mut
182 141 41 55.5 _bin/cxx-opt+bumproot/osh mut
195 131 64 57.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 134 78 48.2 osh-native mut+alloc
222 146 76 49.9 osh-native mut+alloc+free
183 133 50 8.8 osh-native mut+alloc+free+gc
184 124 60 8.7 osh-native mut+alloc+free+gc+exit
237 154 83 64.0 _bin/cxx-opt+nopool/osh mut+alloc
217 170 47 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 135 69 47.6 osh-native-souffle mut+alloc
213 135 79 49.5 osh-native-souffle mut+alloc+free
176 124 52 8.1 osh-native-souffle mut+alloc+free+gc
176 126 50 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
9 4 6 3.5 dash -
20 11 10 4.3 bash -
17 6 12 3.4 zsh -
19 7 12 12.0 bumpleak/osh mut
19 8 12 12.6 _bin/cxx-opt+bumproot/osh mut
20 13 8 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 10 11 11.0 osh-native mut+alloc
23 12 11 11.3 osh-native mut+alloc+free
22 12 11 9.0 osh-native mut+alloc+free+gc
23 11 13 9.0 osh-native mut+alloc+free+gc+exit
24 13 12 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 15 12 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 11 10 10.6 osh-native-souffle mut+alloc
21 8 14 10.6 osh-native-souffle mut+alloc+free
21 15 7 8.5 osh-native-souffle mut+alloc+free+gc
22 10 12 8.7 osh-native-souffle mut+alloc+free+gc+exit