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 10 12.0 18.0 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 147 23 62 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 132 22 56 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.1 8.1 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 21 0 1 2.1 7.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 10.8 8.8 1,006,005 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 174 0 3 10.8 8.3 1,006,004 15,258 21 50,000 0 3,842 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.3 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 20 1 2 2.8 8.4 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 22 1 2.9 bash -
99 59 47 3.4 zsh -
16 11 5 29.6 bumpleak/osh mut
19 16 3 28.5 _bin/cxx-opt+bumproot/osh mut
22 12 10 29.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 19 10 25.3 osh-native mut+alloc
31 23 8 25.7 osh-native mut+alloc+free
36 26 10 18.0 osh-native mut+alloc+free+gc
36 31 5 18.0 osh-native mut+alloc+free+gc+exit
42 29 13 32.4 _bin/cxx-opt+nopool/osh mut+alloc
48 38 10 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 17 9 24.8 osh-native-souffle mut+alloc
28 19 9 25.3 osh-native-souffle mut+alloc+free
32 23 9 17.6 osh-native-souffle mut+alloc+free+gc
33 22 11 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
22 22 0 1.6 dash -
78 77 1 3.1 bash -
363 188 196 3.7 zsh -
49 38 11 84.2 bumpleak/osh mut
59 50 9 84.7 _bin/cxx-opt+bumproot/osh mut
70 61 9 84.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 69 27 73.4 osh-native mut+alloc
104 66 39 75.4 osh-native mut+alloc+free
147 127 20 49.8 osh-native mut+alloc+free+gc
152 136 16 50.3 osh-native mut+alloc+free+gc+exit
137 88 49 98.9 _bin/cxx-opt+nopool/osh mut+alloc
204 175 29 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 56 31 73.1 osh-native-souffle mut+alloc
96 66 30 75.0 osh-native-souffle mut+alloc+free
132 107 24 49.3 osh-native-souffle mut+alloc+free+gc
136 112 24 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 2.9 bash -
7 4 4 3.1 zsh -
6 5 1 12.3 bumpleak/osh mut
6 3 4 12.4 _bin/cxx-opt+bumproot/osh mut
7 4 3 11.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
8 7 2 10.1 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
11 7 5 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 9 2 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 6 1 9.7 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
9 8 1 7.9 osh-native-souffle mut+alloc+free+gc
9 6 3 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 10 0 1.4 dash -
28 25 3 2.9 bash -
23 18 5 3.3 zsh -
18 14 4 30.9 bumpleak/osh mut
26 21 5 32.7 _bin/cxx-opt+bumproot/osh mut
29 25 3 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 30 6 26.3 osh-native mut+alloc
37 28 9 26.6 osh-native mut+alloc+free
28 24 4 8.1 osh-native mut+alloc+free+gc
28 26 2 8.0 osh-native mut+alloc+free+gc+exit
53 38 15 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 18 11 25.8 osh-native-souffle mut+alloc
30 18 12 26.1 osh-native-souffle mut+alloc+free
21 19 2 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
72 67 5 3.1 bash -
164 120 44 54.9 bumpleak/osh mut
179 125 54 57.3 _bin/cxx-opt+bumproot/osh mut
195 127 67 57.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 142 72 48.2 osh-native mut+alloc
217 143 74 49.9 osh-native mut+alloc+free
184 140 44 8.8 osh-native mut+alloc+free+gc
181 129 52 8.8 osh-native mut+alloc+free+gc+exit
234 151 83 64.0 _bin/cxx-opt+nopool/osh mut+alloc
209 155 54 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 127 76 47.6 osh-native-souffle mut+alloc
212 148 63 49.5 osh-native-souffle mut+alloc+free
174 127 46 8.3 osh-native-souffle mut+alloc+free+gc
173 119 54 8.5 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 10 10 4.5 bash -
17 10 7 3.5 zsh -
19 12 7 12.8 bumpleak/osh mut
19 10 9 12.1 _bin/cxx-opt+bumproot/osh mut
19 10 10 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 10 11 11.1 osh-native mut+alloc
22 9 13 11.3 osh-native mut+alloc+free
22 14 9 9.3 osh-native mut+alloc+free+gc
22 13 10 8.9 osh-native mut+alloc+free+gc+exit
24 13 11 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 18 7 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 12 8 10.5 osh-native-souffle mut+alloc
20 8 13 10.7 osh-native-souffle mut+alloc+free
20 11 10 8.4 osh-native-souffle mut+alloc+free+gc
21 10 11 8.7 osh-native-souffle mut+alloc+free+gc+exit