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 37 4 10 12.0 18.0 476,755 1,282 6 406,612 5 203,306 osh-native
parse.configure-cpython 36 6 12 12.0 17.6 476,755 1,282 6 406,208 5 203,104 osh-native-souffle
parse.configure-coreutils 165 26 78 44.5 49.8 1,653,343 4,764 12 1,025,534 6 764,310 osh-native
parse.configure-coreutils 177 30 96 44.5 49.4 1,653,342 4,764 12 1,025,404 6 764,245 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,946 180 2 75,038 1 37,519 osh-native
parse.abuild 9 1 2 2.4 7.9 101,946 180 3 87,100 1 43,550 osh-native-souffle
ex.compute-fib 28 0 2 2.1 8.0 579,610 22,608 12 50,000 0 2,923 osh-native
ex.compute-fib 22 0 2 2.1 7.6 579,610 22,608 12 50,000 0 2,862 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 10.3 8.7 995,292 15,258 21 50,000 0 3,905 osh-native
ex.bashcomp-parse-help 175 0 4 10.3 8.3 995,291 15,258 21 50,000 0 3,848 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,322 277 3 85,256 1 42,628 osh-native
ex.abuild-print-help 22 1 2 2.8 8.7 116,322 277 3 85,132 1 42,566 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 -
24 24 0 3.1 bash -
107 59 54 3.4 zsh -
16 8 8 28.6 bumpleak/osh mut
20 16 4 28.5 _bin/cxx-opt+bumproot/osh mut
22 14 7 29.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 21 8 25.3 osh-native mut+alloc
32 12 20 25.6 osh-native mut+alloc+free
37 22 14 18.0 osh-native mut+alloc+free+gc
37 26 11 18.0 osh-native mut+alloc+free+gc+exit
45 24 20 32.3 _bin/cxx-opt+nopool/osh mut+alloc
59 43 16 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 9 18 24.8 osh-native-souffle mut+alloc
29 21 8 25.3 osh-native-souffle mut+alloc+free
36 20 16 17.6 osh-native-souffle mut+alloc+free+gc
35 30 4 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
22 18 4 1.6 dash -
77 77 0 3.3 bash -
380 253 148 3.5 zsh -
49 38 11 85.0 bumpleak/osh mut
61 45 15 84.7 _bin/cxx-opt+bumproot/osh mut
70 57 12 85.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 61 36 73.4 osh-native mut+alloc
104 76 28 75.4 osh-native mut+alloc+free
165 142 24 49.8 osh-native mut+alloc+free+gc
169 148 20 50.6 osh-native mut+alloc+free+gc+exit
141 93 48 99.5 _bin/cxx-opt+nopool/osh mut+alloc
247 223 24 67.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 64 24 73.1 osh-native-souffle mut+alloc
98 63 35 75.1 osh-native-souffle mut+alloc+free
177 153 24 49.4 osh-native-souffle mut+alloc+free+gc
177 153 24 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 6 0 3.0 bash -
8 4 4 3.3 zsh -
6 3 3 10.9 bumpleak/osh mut
7 7 0 11.8 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 9.8 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 5 5 8.5 osh-native mut+alloc+free+gc
10 10 0 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.7 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
9 9 0 7.9 osh-native-souffle mut+alloc+free+gc
11 10 0 7.9 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 10 0 1.4 dash -
29 29 0 3.0 bash -
23 19 4 3.3 zsh -
18 13 4 30.9 bumpleak/osh mut
25 14 11 31.8 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 21 16 26.2 osh-native mut+alloc
38 33 4 26.6 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
54 31 23 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 17 13 26.0 osh-native-souffle mut+alloc
32 27 4 26.1 osh-native-souffle mut+alloc+free
22 18 4 7.6 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 69 4 3.1 bash -
168 132 36 54.3 bumpleak/osh mut
184 106 77 55.8 _bin/cxx-opt+bumproot/osh mut
199 132 68 55.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 136 76 47.4 osh-native mut+alloc
221 149 72 49.0 osh-native mut+alloc+free
184 144 40 8.7 osh-native mut+alloc+free+gc
185 128 56 8.9 osh-native mut+alloc+free+gc+exit
238 154 83 64.4 _bin/cxx-opt+nopool/osh mut+alloc
217 153 64 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 160 44 47.0 osh-native-souffle mut+alloc
211 128 84 48.6 osh-native-souffle mut+alloc+free
175 119 55 8.3 osh-native-souffle mut+alloc+free+gc
176 139 36 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 10 0 3.5 dash -
20 12 9 4.5 bash -
18 6 12 3.4 zsh -
20 15 5 12.1 bumpleak/osh mut
21 16 6 13.4 _bin/cxx-opt+bumproot/osh mut
20 11 9 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 12 10 10.9 osh-native mut+alloc
22 6 16 11.1 osh-native mut+alloc+free
23 19 5 9.0 osh-native mut+alloc+free+gc
23 15 9 9.0 osh-native mut+alloc+free+gc+exit
24 6 19 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 17 9 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 18 3 10.6 osh-native-souffle mut+alloc
22 11 12 10.9 osh-native-souffle mut+alloc+free
22 16 6 8.7 osh-native-souffle mut+alloc+free+gc
22 16 7 8.5 osh-native-souffle mut+alloc+free+gc+exit