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 3 10 12.0 17.8 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 33 4 10 12.0 17.6 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 156 26 69 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 158 25 82 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 7.9 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 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.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 10.9 8.8 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 174 0 4 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.2 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 -
23 20 3 3.0 bash -
100 51 55 3.4 zsh -
16 11 5 28.8 bumpleak/osh mut
20 18 2 29.6 _bin/cxx-opt+bumproot/osh mut
23 19 4 29.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 18 11 25.0 osh-native mut+alloc
32 20 12 25.4 osh-native mut+alloc+free
36 30 6 17.8 osh-native mut+alloc+free+gc
36 28 8 18.2 osh-native mut+alloc+free+gc+exit
42 23 19 32.3 _bin/cxx-opt+nopool/osh mut+alloc
48 39 9 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 18 9 24.8 osh-native-souffle mut+alloc
28 17 12 25.2 osh-native-souffle mut+alloc+free
33 25 8 17.6 osh-native-souffle mut+alloc+free+gc
39 29 10 17.8 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 20 1 1.6 dash -
77 76 1 3.1 bash -
362 195 188 3.4 zsh -
49 39 10 84.9 bumpleak/osh mut
60 53 7 84.6 _bin/cxx-opt+bumproot/osh mut
72 50 22 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 67 29 73.4 osh-native mut+alloc
104 71 33 75.4 osh-native mut+alloc+free
156 127 29 49.7 osh-native mut+alloc+free+gc
176 148 28 50.5 osh-native mut+alloc+free+gc+exit
138 97 40 98.9 _bin/cxx-opt+nopool/osh mut+alloc
247 216 31 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 57 30 73.1 osh-native-souffle mut+alloc
95 61 34 75.0 osh-native-souffle mut+alloc+free
158 141 17 49.4 osh-native-souffle mut+alloc+free+gc
169 150 19 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 3 4 3.4 zsh -
6 2 4 10.8 bumpleak/osh mut
6 7 0 12.7 _bin/cxx-opt+bumproot/osh mut
13 9 4 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 5 4 10.1 osh-native mut+alloc
9 6 3 10.0 osh-native mut+alloc+free
9 5 4 8.5 osh-native mut+alloc+free+gc
9 6 3 8.7 osh-native mut+alloc+free+gc+exit
12 5 7 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 7 5 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.6 osh-native-souffle mut+alloc
8 3 5 9.8 osh-native-souffle mut+alloc+free
9 7 2 7.9 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 10 0 1.4 dash -
39 38 1 3.0 bash -
23 20 3 3.1 zsh -
18 13 5 31.3 bumpleak/osh mut
28 23 5 33.0 _bin/cxx-opt+bumproot/osh mut
29 26 3 31.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 23 13 26.3 osh-native mut+alloc
37 28 9 26.5 osh-native mut+alloc+free
28 26 2 8.1 osh-native mut+alloc+free+gc
28 27 1 8.0 osh-native mut+alloc+free+gc+exit
53 35 19 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 34 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 20 9 26.0 osh-native-souffle mut+alloc
30 22 8 26.2 osh-native-souffle mut+alloc+free
22 21 1 7.6 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
73 70 3 3.3 bash -
164 114 50 55.5 bumpleak/osh mut
179 120 59 57.1 _bin/cxx-opt+bumproot/osh mut
196 132 63 58.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 135 79 48.7 osh-native mut+alloc
219 160 59 50.6 osh-native mut+alloc+free
183 130 53 8.8 osh-native mut+alloc+free+gc
182 127 55 8.8 osh-native mut+alloc+free+gc+exit
234 150 84 64.4 _bin/cxx-opt+nopool/osh mut+alloc
211 162 49 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 128 75 48.3 osh-native-souffle mut+alloc
209 142 67 50.2 osh-native-souffle mut+alloc+free
174 118 55 8.3 osh-native-souffle mut+alloc+free+gc
173 118 55 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 3 6 3.5 dash -
19 8 12 4.5 bash -
17 5 12 3.4 zsh -
17 9 9 13.0 bumpleak/osh mut
20 10 11 12.8 _bin/cxx-opt+bumproot/osh mut
20 9 11 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 9 13 11.0 osh-native mut+alloc
22 12 10 11.0 osh-native mut+alloc+free
22 15 7 9.2 osh-native mut+alloc+free+gc
23 8 15 9.2 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 8 12 10.5 osh-native-souffle mut+alloc
20 11 9 10.7 osh-native-souffle mut+alloc+free
21 10 11 8.7 osh-native-souffle mut+alloc+free+gc
21 11 11 8.5 osh-native-souffle mut+alloc+free+gc+exit