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 39 4 12 12.0 18.0 476,744 1,282 6 406,316 5 203,158 osh-native
parse.configure-cpython 38 6 13 12.0 17.6 476,744 1,282 6 406,186 5 203,093 osh-native-souffle
parse.configure-coreutils 186 29 94 44.5 50.0 1,653,332 4,764 12 1,025,512 6 764,299 osh-native
parse.configure-coreutils 179 32 97 45.9 50.9 1,653,331 4,764 12 1,063,842 6 792,359 osh-native-souffle
parse.abuild 10 1 2 2.6 8.5 101,935 180 2 75,016 1 37,508 osh-native
parse.abuild 10 1 3 2.4 7.9 101,935 180 3 87,078 1 43,539 osh-native-souffle
ex.compute-fib 28 0 2 2.1 7.9 579,599 22,608 12 50,000 0 2,912 osh-native
ex.compute-fib 22 0 2 2.1 7.7 579,599 22,608 12 50,000 0 2,850 osh-native-souffle
ex.bashcomp-parse-help 185 0 4 10.3 8.7 995,281 15,258 21 50,000 0 3,894 osh-native
ex.bashcomp-parse-help 178 0 4 10.3 8.3 995,280 15,258 21 50,000 0 3,839 osh-native-souffle
ex.abuild-print-help 24 1 3 2.8 9.2 116,311 277 3 85,234 1 42,617 osh-native
ex.abuild-print-help 23 1 3 2.8 8.5 116,311 277 3 85,110 1 42,555 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 19 4 3.0 bash -
107 75 40 3.4 zsh -
17 8 8 28.8 bumpleak/osh mut
19 12 8 29.1 _bin/cxx-opt+bumproot/osh mut
24 20 4 28.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 18 13 25.2 osh-native mut+alloc
33 20 12 25.6 osh-native mut+alloc+free
39 23 16 18.0 osh-native mut+alloc+free+gc
40 28 12 18.1 osh-native mut+alloc+free+gc+exit
44 28 16 32.5 _bin/cxx-opt+nopool/osh mut+alloc
58 49 8 22.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 12 24.9 osh-native-souffle mut+alloc
30 25 4 25.3 osh-native-souffle mut+alloc+free
38 34 4 17.6 osh-native-souffle mut+alloc+free+gc
40 35 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 21 0 1.6 dash -
78 74 4 3.1 bash -
395 225 192 3.5 zsh -
49 49 0 85.8 bumpleak/osh mut
62 43 19 85.2 _bin/cxx-opt+bumproot/osh mut
72 68 4 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
100 72 28 73.5 osh-native mut+alloc
108 52 56 75.2 osh-native mut+alloc+free
186 165 20 50.0 osh-native mut+alloc+free+gc
183 155 28 50.3 osh-native mut+alloc+free+gc+exit
141 76 64 99.4 _bin/cxx-opt+nopool/osh mut+alloc
264 228 36 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
90 61 29 73.3 osh-native-souffle mut+alloc
100 52 48 75.0 osh-native-souffle mut+alloc+free
179 147 33 50.9 osh-native-souffle mut+alloc+free+gc
180 160 20 51.7 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.3 dash -
6 3 3 2.9 bash -
8 4 4 3.4 zsh -
7 3 3 11.0 bumpleak/osh mut
7 0 7 12.6 _bin/cxx-opt+bumproot/osh mut
8 8 0 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.0 osh-native mut+alloc
9 6 3 10.0 osh-native mut+alloc+free
10 5 5 8.5 osh-native mut+alloc+free+gc
10 5 5 8.4 osh-native mut+alloc+free+gc+exit
13 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
13 7 7 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.6 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
10 5 5 7.9 osh-native-souffle mut+alloc+free+gc
10 7 3 8.1 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 7 3 1.4 dash -
29 29 0 2.9 bash -
24 20 4 3.3 zsh -
20 19 0 30.5 bumpleak/osh mut
27 23 4 32.1 _bin/cxx-opt+bumproot/osh mut
28 24 4 31.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 28 8 26.0 osh-native mut+alloc
38 23 15 26.2 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
29 21 7 8.0 osh-native mut+alloc+free+gc+exit
57 24 32 35.5 _bin/cxx-opt+nopool/osh mut+alloc
38 38 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 17 13 25.6 osh-native-souffle mut+alloc
32 28 4 25.7 osh-native-souffle mut+alloc+free
22 22 0 7.7 osh-native-souffle mut+alloc+free+gc
22 22 0 7.5 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
74 65 8 3.1 bash -
168 108 60 55.0 bumpleak/osh mut
184 108 76 54.7 _bin/cxx-opt+bumproot/osh mut
198 122 75 55.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
215 147 68 47.0 osh-native mut+alloc
221 149 72 48.6 osh-native mut+alloc+free
185 152 32 8.7 osh-native mut+alloc+free+gc
188 140 48 8.7 osh-native mut+alloc+free+gc+exit
235 167 68 64.4 _bin/cxx-opt+nopool/osh mut+alloc
221 165 56 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
208 124 84 46.6 osh-native-souffle mut+alloc
214 123 91 48.3 osh-native-souffle mut+alloc+free
178 157 20 8.3 osh-native-souffle mut+alloc+free+gc
178 113 65 8.3 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 5 6 3.4 dash -
20 16 5 4.3 bash -
19 7 13 3.5 zsh -
21 12 9 12.0 bumpleak/osh mut
21 17 4 11.8 _bin/cxx-opt+bumproot/osh mut
21 20 2 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 16 7 10.7 osh-native mut+alloc
23 12 12 11.1 osh-native mut+alloc+free
24 21 4 9.2 osh-native mut+alloc+free+gc
24 15 9 9.0 osh-native mut+alloc+free+gc+exit
26 20 7 12.7 _bin/cxx-opt+nopool/osh mut+alloc
27 26 2 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 18 3 10.5 osh-native-souffle mut+alloc
23 18 6 10.9 osh-native-souffle mut+alloc+free
23 16 8 8.5 osh-native-souffle mut+alloc+free+gc
24 17 7 8.7 osh-native-souffle mut+alloc+free+gc+exit