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 10 12.0 17.8 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 32 3 10 12.0 17.4 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 145 23 60 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 135 23 60 44.5 49.3 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 2 2.2 8.0 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 2 2.2 7.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 181 0 4 10.9 8.7 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 174 0 4 10.9 8.4 1,017,203 15,258 21 50,000 0 3,851 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 20 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 -
23 22 1 3.0 bash -
100 53 52 3.3 zsh -
16 13 3 28.1 bumpleak/osh mut
19 16 3 29.2 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 18 11 25.3 osh-native mut+alloc
31 24 7 25.6 osh-native mut+alloc+free
35 27 8 17.8 osh-native mut+alloc+free+gc
37 30 7 18.1 osh-native mut+alloc+free+gc+exit
41 25 17 32.5 _bin/cxx-opt+nopool/osh mut+alloc
46 38 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 18 8 24.9 osh-native-souffle mut+alloc
28 16 12 25.3 osh-native-souffle mut+alloc+free
32 26 6 17.4 osh-native-souffle mut+alloc+free+gc
33 24 9 17.6 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
21 21 0 1.6 dash -
78 76 2 3.3 bash -
363 192 193 3.5 zsh -
47 39 8 85.3 bumpleak/osh mut
60 54 6 86.0 _bin/cxx-opt+bumproot/osh mut
70 63 7 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
95 69 26 73.5 osh-native mut+alloc
104 70 34 75.2 osh-native mut+alloc+free
145 126 19 49.8 osh-native mut+alloc+free+gc
156 140 16 50.3 osh-native mut+alloc+free+gc+exit
138 88 50 98.9 _bin/cxx-opt+nopool/osh mut+alloc
204 177 27 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 54 32 73.0 osh-native-souffle mut+alloc
94 59 35 75.0 osh-native-souffle mut+alloc+free
135 111 24 49.3 osh-native-souffle mut+alloc+free+gc
142 128 14 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 -
5 5 0 2.9 bash -
7 4 4 3.4 zsh -
6 4 2 11.5 bumpleak/osh mut
7 5 2 11.9 _bin/cxx-opt+bumproot/osh mut
7 4 3 10.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 9.8 osh-native mut+alloc
8 6 2 10.1 osh-native mut+alloc+free
9 5 4 8.5 osh-native mut+alloc+free+gc
10 6 4 8.7 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 2 5 9.8 osh-native-souffle mut+alloc
8 7 1 9.7 osh-native-souffle mut+alloc+free
9 7 2 7.9 osh-native-souffle mut+alloc+free+gc
9 5 4 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 9 1 1.4 dash -
28 27 1 3.0 bash -
23 17 6 3.3 zsh -
18 15 3 32.4 bumpleak/osh mut
26 21 5 33.1 _bin/cxx-opt+bumproot/osh mut
28 21 7 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 20 16 26.3 osh-native mut+alloc
37 25 13 26.6 osh-native mut+alloc+free
28 25 3 8.0 osh-native mut+alloc+free+gc
28 25 3 8.0 osh-native mut+alloc+free+gc+exit
53 36 17 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 16 13 25.7 osh-native-souffle mut+alloc
31 23 8 26.1 osh-native-souffle mut+alloc+free
22 19 3 7.6 osh-native-souffle mut+alloc+free+gc
22 19 2 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 71 2 3.1 bash -
166 118 48 56.9 bumpleak/osh mut
183 126 57 56.4 _bin/cxx-opt+bumproot/osh mut
195 142 53 57.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
215 137 78 48.7 osh-native mut+alloc
218 146 72 50.6 osh-native mut+alloc+free
181 123 58 8.7 osh-native mut+alloc+free+gc
182 131 51 8.8 osh-native mut+alloc+free+gc+exit
234 150 84 64.6 _bin/cxx-opt+nopool/osh mut+alloc
210 162 47 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 128 75 48.3 osh-native-souffle mut+alloc
210 138 72 50.0 osh-native-souffle mut+alloc+free
174 122 52 8.4 osh-native-souffle mut+alloc+free+gc
173 129 44 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
9 4 6 3.4 dash -
19 10 9 4.3 bash -
17 8 10 3.4 zsh -
18 10 8 11.3 bumpleak/osh mut
20 10 11 13.1 _bin/cxx-opt+bumproot/osh mut
21 12 10 13.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 7 15 11.0 osh-native mut+alloc
22 8 15 11.1 osh-native mut+alloc+free
22 10 12 9.2 osh-native mut+alloc+free+gc
23 13 11 9.2 osh-native mut+alloc+free+gc+exit
24 12 13 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 15 10 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 7 13 10.6 osh-native-souffle mut+alloc
20 8 13 10.9 osh-native-souffle mut+alloc+free
20 11 10 8.7 osh-native-souffle mut+alloc+free+gc
21 9 13 8.7 osh-native-souffle mut+alloc+free+gc+exit