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 35 3 9 12.0 18.1 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 34 4 10 12.0 17.3 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 151 25 64 44.5 49.6 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 152 25 76 44.5 49.4 1,653,338 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,942 180 2 75,030 1 37,515 osh-native
parse.abuild 10 1 2 2.4 8.0 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 0 1 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 184 0 4 10.8 8.8 1,006,008 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 178 0 4 10.8 8.1 1,006,007 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.7 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 3 3 1.6 dash -
24 23 0 3.1 bash -
108 62 52 3.4 zsh -
16 8 8 27.9 bumpleak/osh mut
20 12 8 29.9 _bin/cxx-opt+bumproot/osh mut
23 22 0 30.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.2 osh-native mut+alloc
32 24 8 25.7 osh-native mut+alloc+free
35 26 9 18.1 osh-native mut+alloc+free+gc
40 32 8 18.0 osh-native mut+alloc+free+gc+exit
44 28 16 32.4 _bin/cxx-opt+nopool/osh mut+alloc
51 43 8 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 8 19 24.9 osh-native-souffle mut+alloc
29 15 15 25.3 osh-native-souffle mut+alloc+free
34 22 11 17.3 osh-native-souffle mut+alloc+free+gc
35 31 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 22 0 1.6 dash -
78 78 0 3.1 bash -
382 210 194 3.5 zsh -
48 32 16 85.8 bumpleak/osh mut
60 52 8 84.8 _bin/cxx-opt+bumproot/osh mut
70 33 37 84.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 62 35 73.7 osh-native mut+alloc
105 74 31 75.4 osh-native mut+alloc+free
151 123 28 49.6 osh-native mut+alloc+free+gc
157 145 12 50.5 osh-native mut+alloc+free+gc+exit
141 92 48 98.8 _bin/cxx-opt+nopool/osh mut+alloc
223 191 32 67.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 53 33 73.1 osh-native-souffle mut+alloc
95 51 44 75.0 osh-native-souffle mut+alloc+free
152 128 24 49.4 osh-native-souffle mut+alloc+free+gc
159 123 36 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 0 2 1.3 dash -
6 3 3 2.9 bash -
8 4 4 3.3 zsh -
6 3 3 10.8 bumpleak/osh mut
7 6 0 12.3 _bin/cxx-opt+bumproot/osh mut
8 8 0 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.0 osh-native mut+alloc
9 3 6 10.1 osh-native mut+alloc+free
9 0 9 8.7 osh-native mut+alloc+free+gc
9 3 6 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.6 osh-native-souffle mut+alloc
8 8 0 9.6 osh-native-souffle mut+alloc+free
10 6 3 8.0 osh-native-souffle mut+alloc+free+gc
10 6 3 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.4 dash -
28 28 0 3.0 bash -
24 12 12 3.3 zsh -
18 15 4 31.4 bumpleak/osh mut
26 26 0 33.0 _bin/cxx-opt+bumproot/osh mut
29 16 12 31.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 24 12 26.3 osh-native mut+alloc
38 23 15 26.5 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
55 39 16 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 26 4 25.8 osh-native-souffle mut+alloc
32 20 12 26.2 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 104 64 56.1 bumpleak/osh mut
186 109 77 56.6 _bin/cxx-opt+bumproot/osh mut
198 119 79 58.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 126 87 48.2 osh-native mut+alloc
223 182 40 49.9 osh-native mut+alloc+free
184 132 52 8.8 osh-native mut+alloc+free+gc
185 136 48 8.9 osh-native mut+alloc+free+gc+exit
235 145 89 63.8 _bin/cxx-opt+nopool/osh mut+alloc
214 166 48 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
208 144 64 47.7 osh-native-souffle mut+alloc
217 149 68 49.6 osh-native-souffle mut+alloc+free
178 121 57 8.1 osh-native-souffle mut+alloc+free+gc
178 123 55 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 15 5 4.5 bash -
18 10 9 3.5 zsh -
20 17 3 12.6 bumpleak/osh mut
22 15 7 13.9 _bin/cxx-opt+bumproot/osh mut
25 12 14 13.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 14 8 11.0 osh-native mut+alloc
22 11 12 11.3 osh-native mut+alloc+free
23 18 5 9.0 osh-native mut+alloc+free+gc
23 11 13 9.0 osh-native mut+alloc+free+gc+exit
25 19 6 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 19 7 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 11 10 10.5 osh-native-souffle mut+alloc
22 22 0 10.5 osh-native-souffle mut+alloc+free
22 15 7 8.7 osh-native-souffle mut+alloc+free+gc
22 14 9 8.5 osh-native-souffle mut+alloc+free+gc+exit