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 11 12.0 18.0 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 33 3 10 12.0 17.4 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 148 25 62 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 154 27 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.5 101,942 180 2 75,030 1 37,515 osh-native
parse.abuild 10 1 2 2.4 7.9 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 0 2 2.1 8.1 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 185 0 4 10.8 8.8 1,006,008 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 176 0 4 10.8 8.4 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.8 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.4 dash -
23 19 4 3.1 bash -
104 57 53 3.4 zsh -
16 15 0 28.6 bumpleak/osh mut
20 16 4 28.7 _bin/cxx-opt+bumproot/osh mut
23 15 8 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 19 11 25.2 osh-native mut+alloc
32 24 8 25.7 osh-native mut+alloc+free
38 30 7 18.0 osh-native mut+alloc+free+gc
37 24 12 17.8 osh-native mut+alloc+free+gc+exit
44 20 24 32.4 _bin/cxx-opt+nopool/osh mut+alloc
52 37 15 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 11 15 24.9 osh-native-souffle mut+alloc
28 8 20 25.3 osh-native-souffle mut+alloc+free
33 29 4 17.4 osh-native-souffle mut+alloc+free+gc
35 15 19 17.8 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.3 bash -
378 234 165 3.5 zsh -
49 45 4 84.9 bumpleak/osh mut
60 56 4 85.4 _bin/cxx-opt+bumproot/osh mut
70 58 12 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 73 24 73.7 osh-native mut+alloc
105 84 20 75.2 osh-native mut+alloc+free
148 120 28 49.7 osh-native mut+alloc+free+gc
163 138 24 50.3 osh-native mut+alloc+free+gc+exit
140 72 68 98.9 _bin/cxx-opt+nopool/osh mut+alloc
225 192 32 68.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 60 28 73.1 osh-native-souffle mut+alloc
98 74 23 75.0 osh-native-souffle mut+alloc+free
154 142 12 49.4 osh-native-souffle mut+alloc+free+gc
155 127 28 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.3 dash -
6 6 0 3.0 bash -
8 4 4 3.1 zsh -
6 3 3 10.6 bumpleak/osh mut
7 3 3 12.6 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 8 0 10.1 osh-native mut+alloc
9 9 0 10.2 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 3 6 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.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
10 10 0 7.9 osh-native-souffle mut+alloc+free+gc
9 3 6 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
11 10 0 1.4 dash -
30 30 0 2.9 bash -
24 16 8 3.1 zsh -
19 15 4 31.9 bumpleak/osh mut
26 25 0 31.4 _bin/cxx-opt+bumproot/osh mut
28 16 12 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.3 osh-native mut+alloc
38 21 17 26.6 osh-native mut+alloc+free
28 24 4 8.1 osh-native mut+alloc+free+gc
29 24 4 8.1 osh-native mut+alloc+free+gc+exit
55 46 8 35.8 _bin/cxx-opt+nopool/osh mut+alloc
40 35 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 15 15 25.8 osh-native-souffle mut+alloc
31 12 19 26.2 osh-native-souffle mut+alloc+free
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc
22 21 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 64 8 3.1 bash -
172 104 68 55.8 bumpleak/osh mut
183 119 63 56.0 _bin/cxx-opt+bumproot/osh mut
199 131 67 57.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
217 137 80 47.9 osh-native mut+alloc
220 144 76 50.0 osh-native mut+alloc+free
185 130 55 8.8 osh-native mut+alloc+free+gc
187 134 53 8.7 osh-native mut+alloc+free+gc+exit
239 149 89 64.2 _bin/cxx-opt+nopool/osh mut+alloc
225 162 63 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
208 120 88 47.5 osh-native-souffle mut+alloc
215 163 52 49.6 osh-native-souffle mut+alloc+free
176 140 36 8.4 osh-native-souffle mut+alloc+free+gc
178 138 40 8.5 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 7 3 3.5 dash -
20 20 0 4.5 bash -
18 13 5 3.4 zsh -
18 6 12 12.9 bumpleak/osh mut
20 12 9 12.9 _bin/cxx-opt+bumproot/osh mut
20 16 5 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 11 11.0 osh-native mut+alloc
23 19 5 11.1 osh-native mut+alloc+free
23 19 4 9.0 osh-native mut+alloc+free+gc
23 22 2 9.0 osh-native mut+alloc+free+gc+exit
25 23 2 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 20 6 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 18 3 10.5 osh-native-souffle mut+alloc
22 14 8 10.7 osh-native-souffle mut+alloc+free
22 15 7 8.8 osh-native-souffle mut+alloc+free+gc
23 14 9 8.7 osh-native-souffle mut+alloc+free+gc+exit