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 36 4 9 12.0 18.1 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 32 3 9 12.0 17.6 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 148 23 62 44.5 49.6 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 135 24 59 44.5 49.2 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 9 1 2 2.4 7.9 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 1 2.1 7.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 183 0 3 10.8 8.9 1,006,008 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 176 0 3 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.0 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 6 0 1.6 dash -
24 19 4 3.1 bash -
104 64 46 3.4 zsh -
17 8 8 28.5 bumpleak/osh mut
19 19 0 30.2 _bin/cxx-opt+bumproot/osh mut
22 18 4 30.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 8 21 25.0 osh-native mut+alloc
31 27 4 25.6 osh-native mut+alloc+free
36 35 0 18.1 osh-native mut+alloc+free+gc
36 32 4 18.0 osh-native mut+alloc+free+gc+exit
44 31 12 33.4 _bin/cxx-opt+nopool/osh mut+alloc
48 35 12 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 15 11 24.8 osh-native-souffle mut+alloc
28 20 8 25.3 osh-native-souffle mut+alloc+free
32 20 12 17.6 osh-native-souffle mut+alloc+free+gc
33 24 8 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 77 0 3.3 bash -
382 229 174 3.5 zsh -
51 35 16 83.9 bumpleak/osh mut
59 47 12 85.1 _bin/cxx-opt+bumproot/osh mut
69 57 12 85.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 76 20 73.5 osh-native mut+alloc
105 73 32 75.4 osh-native mut+alloc+free
148 136 12 49.6 osh-native mut+alloc+free+gc
149 141 8 50.3 osh-native mut+alloc+free+gc+exit
138 94 43 97.8 _bin/cxx-opt+nopool/osh mut+alloc
214 189 24 67.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 61 25 73.1 osh-native-souffle mut+alloc
95 59 35 75.0 osh-native-souffle mut+alloc+free
135 104 32 49.2 osh-native-souffle mut+alloc+free+gc
138 126 12 49.9 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 3 3 3.0 bash -
8 8 0 3.3 zsh -
7 6 0 11.7 bumpleak/osh mut
7 0 7 11.9 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.2 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
10 10 0 8.5 osh-native mut+alloc+free+gc+exit
12 4 8 11.5 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 0 8 9.4 osh-native-souffle mut+alloc
8 4 4 9.6 osh-native-souffle mut+alloc+free
9 9 0 7.9 osh-native-souffle mut+alloc+free+gc
9 3 6 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 -
29 25 4 3.0 bash -
24 20 4 3.1 zsh -
18 14 5 31.8 bumpleak/osh mut
26 26 0 33.0 _bin/cxx-opt+bumproot/osh mut
28 28 0 31.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 28 0 8.0 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
54 45 8 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 29 8 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 17 13 26.0 osh-native-souffle mut+alloc
31 26 4 26.2 osh-native-souffle mut+alloc+free
22 21 0 7.6 osh-native-souffle mut+alloc+free+gc
21 17 4 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 73 0 3.1 bash -
169 106 63 55.2 bumpleak/osh mut
182 139 44 56.9 _bin/cxx-opt+bumproot/osh mut
197 116 80 56.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 130 83 48.2 osh-native mut+alloc
222 139 83 50.0 osh-native mut+alloc+free
183 154 28 8.9 osh-native mut+alloc+free+gc
184 136 48 8.9 osh-native mut+alloc+free+gc+exit
237 177 60 64.8 _bin/cxx-opt+nopool/osh mut+alloc
211 131 79 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
207 138 69 47.6 osh-native-souffle mut+alloc
214 166 47 49.5 osh-native-souffle mut+alloc+free
176 112 64 8.4 osh-native-souffle mut+alloc+free+gc
176 128 48 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 6 4 3.5 dash -
20 12 8 4.5 bash -
18 9 9 3.5 zsh -
19 10 9 12.2 bumpleak/osh mut
20 11 9 13.1 _bin/cxx-opt+bumproot/osh mut
22 8 14 13.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 12 9 11.0 osh-native mut+alloc
22 6 16 11.3 osh-native mut+alloc+free
22 20 2 9.0 osh-native mut+alloc+free+gc
22 14 9 9.0 osh-native mut+alloc+free+gc+exit
25 11 14 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 22 3 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 10 9 10.6 osh-native-souffle mut+alloc
20 11 10 10.7 osh-native-souffle mut+alloc+free
21 17 4 8.7 osh-native-souffle mut+alloc+free+gc
21 19 3 8.5 osh-native-souffle mut+alloc+free+gc+exit