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 17.7 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 35 4 11 12.0 17.6 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 162 27 73 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 145 25 68 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 9 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 7.9 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 21 0 2 2.1 7.5 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 187 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.4 1,006,007 15,258 21 50,000 0 3,842 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 21 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.0 bash -
104 68 43 3.5 zsh -
16 12 4 29.1 bumpleak/osh mut
20 19 0 29.9 _bin/cxx-opt+bumproot/osh mut
23 19 4 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 17 12 24.9 osh-native mut+alloc
32 20 12 25.7 osh-native mut+alloc+free
37 28 8 17.7 osh-native mut+alloc+free+gc
40 39 0 18.0 osh-native mut+alloc+free+gc+exit
44 28 16 32.2 _bin/cxx-opt+nopool/osh mut+alloc
49 48 0 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 24.9 osh-native-souffle mut+alloc
29 25 4 25.3 osh-native-souffle mut+alloc+free
35 23 11 17.6 osh-native-souffle mut+alloc+free+gc
34 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 21 0 1.4 dash -
78 78 0 3.1 bash -
381 227 175 3.4 zsh -
49 32 16 84.5 bumpleak/osh mut
60 52 8 85.3 _bin/cxx-opt+bumproot/osh mut
70 54 16 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 84 12 73.4 osh-native mut+alloc
105 77 28 75.4 osh-native mut+alloc+free
162 125 36 49.7 osh-native mut+alloc+free+gc
161 149 12 50.6 osh-native mut+alloc+free+gc+exit
137 73 64 99.3 _bin/cxx-opt+nopool/osh mut+alloc
216 180 36 67.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 51 36 73.0 osh-native-souffle mut+alloc
96 56 40 74.9 osh-native-souffle mut+alloc+free
145 132 12 49.4 osh-native-souffle mut+alloc+free+gc
155 134 20 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.4 dash -
6 3 3 2.9 bash -
8 4 4 3.3 zsh -
6 0 6 11.9 bumpleak/osh mut
7 3 3 10.5 _bin/cxx-opt+bumproot/osh mut
7 0 7 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.8 osh-native mut+alloc
9 3 6 10.2 osh-native mut+alloc+free
9 4 4 8.7 osh-native mut+alloc+free+gc
9 5 5 8.7 osh-native mut+alloc+free+gc+exit
11 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 4 8 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
9 9 0 10.0 osh-native-souffle mut+alloc+free
9 6 3 7.9 osh-native-souffle mut+alloc+free+gc
9 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 24 4 2.9 bash -
24 16 8 3.1 zsh -
19 15 4 32.7 bumpleak/osh mut
26 22 4 32.0 _bin/cxx-opt+bumproot/osh mut
29 25 4 33.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.5 osh-native mut+alloc
38 25 13 26.6 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 20 8 8.0 osh-native mut+alloc+free+gc+exit
55 43 12 36.3 _bin/cxx-opt+nopool/osh mut+alloc
38 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 17 13 26.0 osh-native-souffle mut+alloc
31 19 11 26.2 osh-native-souffle mut+alloc+free
21 14 7 7.5 osh-native-souffle mut+alloc+free+gc
21 18 4 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
73 73 0 3.1 bash -
170 117 53 56.1 bumpleak/osh mut
183 116 68 57.1 _bin/cxx-opt+bumproot/osh mut
198 123 75 57.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 123 91 48.0 osh-native mut+alloc
223 167 56 50.0 osh-native mut+alloc+free
187 147 40 8.8 osh-native mut+alloc+free+gc
185 129 56 8.8 osh-native mut+alloc+free+gc+exit
236 144 92 65.0 _bin/cxx-opt+nopool/osh mut+alloc
213 161 52 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
208 132 76 47.6 osh-native-souffle mut+alloc
212 156 56 49.6 osh-native-souffle mut+alloc+free
178 101 77 8.4 osh-native-souffle mut+alloc+free+gc
178 130 47 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 9 1 3.4 dash -
20 10 10 4.3 bash -
18 5 13 3.5 zsh -
20 12 8 12.5 bumpleak/osh mut
21 13 9 13.2 _bin/cxx-opt+bumproot/osh mut
20 18 2 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 15 7 11.0 osh-native mut+alloc
22 6 17 11.0 osh-native mut+alloc+free
22 20 2 9.2 osh-native mut+alloc+free+gc
23 14 9 8.9 osh-native mut+alloc+free+gc+exit
25 11 14 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 19 6 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 15 6 10.6 osh-native-souffle mut+alloc
21 19 3 10.7 osh-native-souffle mut+alloc+free
21 10 12 8.7 osh-native-souffle mut+alloc+free+gc
22 14 8 8.7 osh-native-souffle mut+alloc+free+gc+exit