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 46 7 18 12.0 17.7 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 33 4 10 12.0 17.4 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 176 23 85 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 152 29 75 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 9 1 2 2.4 8.0 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 29 0 1 2.2 8.1 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 2 2.2 7.7 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 187 0 4 10.9 8.8 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 181 0 6 10.9 8.3 1,017,203 15,258 21 50,000 0 3,851 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.5 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 5 1 1.6 dash -
23 21 2 3.0 bash -
101 57 50 3.4 zsh -
16 12 4 28.9 bumpleak/osh mut
20 16 4 29.9 _bin/cxx-opt+bumproot/osh mut
22 18 4 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 20 10 25.2 osh-native mut+alloc
33 28 5 25.7 osh-native mut+alloc+free
46 37 9 17.7 osh-native mut+alloc+free+gc
48 44 4 18.0 osh-native mut+alloc+free+gc+exit
42 31 11 32.4 _bin/cxx-opt+nopool/osh mut+alloc
50 38 12 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 15 11 24.8 osh-native-souffle mut+alloc
28 16 11 25.3 osh-native-souffle mut+alloc+free
33 25 8 17.4 osh-native-souffle mut+alloc+free+gc
37 32 5 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
21 19 2 1.6 dash -
78 77 1 3.3 bash -
369 189 202 3.5 zsh -
51 39 11 84.9 bumpleak/osh mut
59 48 11 84.5 _bin/cxx-opt+bumproot/osh mut
70 58 12 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 67 31 73.4 osh-native mut+alloc
107 74 33 75.2 osh-native mut+alloc+free
176 158 18 49.8 osh-native mut+alloc+free+gc
158 140 18 50.5 osh-native mut+alloc+free+gc+exit
135 95 40 98.9 _bin/cxx-opt+nopool/osh mut+alloc
214 183 31 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
85 53 32 73.3 osh-native-souffle mut+alloc
95 59 36 75.0 osh-native-souffle mut+alloc+free
152 134 18 49.4 osh-native-souffle mut+alloc+free+gc
159 130 29 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 1 1 1.4 dash -
5 4 2 3.0 bash -
7 5 3 3.3 zsh -
6 3 3 10.6 bumpleak/osh mut
7 5 2 11.8 _bin/cxx-opt+bumproot/osh mut
7 3 4 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 6 3 10.1 osh-native mut+alloc
9 7 2 10.1 osh-native mut+alloc+free
9 7 2 8.5 osh-native mut+alloc+free+gc
9 7 2 8.4 osh-native mut+alloc+free+gc+exit
12 7 5 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 3 5 9.7 osh-native-souffle mut+alloc
8 5 4 9.7 osh-native-souffle mut+alloc+free
9 7 2 8.0 osh-native-souffle mut+alloc+free+gc
9 8 1 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 9 1 1.6 dash -
29 29 0 2.9 bash -
23 13 10 3.1 zsh -
18 16 3 31.4 bumpleak/osh mut
26 20 6 32.8 _bin/cxx-opt+bumproot/osh mut
28 23 5 32.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 29 8 26.2 osh-native mut+alloc
38 24 14 26.6 osh-native mut+alloc+free
29 28 0 8.1 osh-native mut+alloc+free+gc
29 26 3 7.9 osh-native mut+alloc+free+gc+exit
53 37 16 35.9 _bin/cxx-opt+nopool/osh mut+alloc
42 37 5 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 20 11 26.0 osh-native-souffle mut+alloc
32 18 14 26.2 osh-native-souffle mut+alloc+free
22 19 3 7.7 osh-native-souffle mut+alloc+free+gc
22 20 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
74 72 2 3.1 bash -
166 105 61 56.7 bumpleak/osh mut
181 123 58 56.0 _bin/cxx-opt+bumproot/osh mut
201 154 47 57.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 132 80 48.7 osh-native mut+alloc
223 131 92 50.4 osh-native mut+alloc+free
187 131 55 8.8 osh-native mut+alloc+free+gc
191 134 56 8.8 osh-native mut+alloc+free+gc+exit
235 151 84 64.6 _bin/cxx-opt+nopool/osh mut+alloc
213 156 57 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
212 140 72 48.2 osh-native-souffle mut+alloc
221 135 86 50.2 osh-native-souffle mut+alloc+free
181 139 42 8.3 osh-native-souffle mut+alloc+free+gc
173 113 60 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 5 3.4 dash -
20 10 10 4.3 bash -
17 5 12 3.5 zsh -
18 9 9 11.7 bumpleak/osh mut
19 10 10 12.3 _bin/cxx-opt+bumproot/osh mut
21 12 10 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 10 11 11.1 osh-native mut+alloc
22 10 12 11.3 osh-native mut+alloc+free
22 16 7 9.0 osh-native mut+alloc+free+gc
22 13 10 8.9 osh-native mut+alloc+free+gc+exit
24 12 13 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 12 13 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 7 13 10.4 osh-native-souffle mut+alloc
21 9 13 10.7 osh-native-souffle mut+alloc+free
21 12 9 8.5 osh-native-souffle mut+alloc+free+gc
22 14 9 8.7 osh-native-souffle mut+alloc+free+gc+exit