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 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 142 21 56 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 136 22 61 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 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 21 0 2 2.1 7.5 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 10.8 8.7 1,006,005 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 175 0 4 10.8 8.4 1,006,004 15,258 21 50,000 0 3,842 osh-native-souffle
ex.abuild-print-help 21 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 4 2 1.6 dash -
23 21 2 3.0 bash -
100 59 47 3.4 zsh -
16 12 4 29.0 bumpleak/osh mut
19 19 0 29.1 _bin/cxx-opt+bumproot/osh mut
22 16 6 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 25 4 25.2 osh-native mut+alloc
30 22 9 25.7 osh-native mut+alloc+free
35 26 9 17.8 osh-native mut+alloc+free+gc
35 27 8 18.1 osh-native mut+alloc+free+gc+exit
41 23 18 32.5 _bin/cxx-opt+nopool/osh mut+alloc
46 39 7 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 17 9 24.8 osh-native-souffle mut+alloc
28 18 10 25.3 osh-native-souffle mut+alloc+free
32 25 8 17.4 osh-native-souffle mut+alloc+free+gc
33 26 7 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 19 2 1.6 dash -
77 76 1 3.0 bash -
375 194 202 3.5 zsh -
48 38 10 85.8 bumpleak/osh mut
59 52 7 86.3 _bin/cxx-opt+bumproot/osh mut
70 59 11 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
95 62 33 73.5 osh-native mut+alloc
104 77 27 75.5 osh-native mut+alloc+free
142 118 24 49.7 osh-native mut+alloc+free+gc
146 124 22 50.5 osh-native mut+alloc+free+gc+exit
140 93 47 98.9 _bin/cxx-opt+nopool/osh mut+alloc
200 170 30 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 53 33 73.1 osh-native-souffle mut+alloc
93 63 30 75.0 osh-native-souffle mut+alloc+free
136 117 19 49.3 osh-native-souffle mut+alloc+free+gc
142 121 21 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 -
5 4 2 2.9 bash -
7 2 5 3.3 zsh -
6 2 4 11.4 bumpleak/osh mut
6 4 3 11.3 _bin/cxx-opt+bumproot/osh mut
7 5 2 10.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.8 osh-native mut+alloc
8 5 3 10.2 osh-native mut+alloc+free
9 7 1 8.5 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
11 7 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 7 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 5 3 9.6 osh-native-souffle mut+alloc
8 6 1 9.8 osh-native-souffle mut+alloc+free
9 8 1 8.0 osh-native-souffle mut+alloc+free+gc
9 7 2 7.9 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 -
29 28 1 3.0 bash -
23 18 5 3.1 zsh -
18 16 2 31.9 bumpleak/osh mut
25 20 5 31.3 _bin/cxx-opt+bumproot/osh mut
28 23 5 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 26 10 26.2 osh-native mut+alloc
37 26 10 26.7 osh-native mut+alloc+free
28 25 3 8.0 osh-native mut+alloc+free+gc
27 24 4 8.0 osh-native mut+alloc+free+gc+exit
53 40 13 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 35 2 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 9 26.0 osh-native-souffle mut+alloc
30 21 9 26.1 osh-native-souffle mut+alloc+free
21 19 2 7.5 osh-native-souffle mut+alloc+free+gc
21 18 3 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
72 69 3 3.1 bash -
165 110 55 56.3 bumpleak/osh mut
178 126 52 56.8 _bin/cxx-opt+bumproot/osh mut
193 132 61 56.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
208 142 66 48.3 osh-native mut+alloc
217 145 71 49.9 osh-native mut+alloc+free
182 129 53 8.7 osh-native mut+alloc+free+gc
182 130 52 8.7 osh-native mut+alloc+free+gc+exit
235 155 79 64.0 _bin/cxx-opt+nopool/osh mut+alloc
209 147 62 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
201 126 75 47.8 osh-native-souffle mut+alloc
209 128 80 49.5 osh-native-souffle mut+alloc+free
175 123 52 8.4 osh-native-souffle mut+alloc+free+gc
171 127 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 5 5 3.4 dash -
19 11 8 4.3 bash -
17 10 7 3.5 zsh -
17 9 9 11.6 bumpleak/osh mut
19 8 12 12.2 _bin/cxx-opt+bumproot/osh mut
19 9 11 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 15 6 11.0 osh-native mut+alloc
21 12 9 11.1 osh-native mut+alloc+free
21 12 10 9.0 osh-native mut+alloc+free+gc
22 10 13 8.9 osh-native mut+alloc+free+gc+exit
25 17 9 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 12 12 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 9 11 10.6 osh-native-souffle mut+alloc
20 12 9 10.6 osh-native-souffle mut+alloc+free
21 11 10 8.7 osh-native-souffle mut+alloc+free+gc
22 10 13 8.5 osh-native-souffle mut+alloc+free+gc+exit