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 18.0 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 34 4 11 12.0 17.4 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 156 25 70 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 147 25 72 44.5 49.5 1,653,338 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 9 1 1 2.6 8.4 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.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 182 0 4 10.9 8.9 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.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 5 1 1.6 dash -
23 22 1 3.0 bash -
101 54 53 3.4 zsh -
16 11 5 28.7 bumpleak/osh mut
20 17 3 30.4 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 20 10 25.3 osh-native mut+alloc
32 22 9 25.6 osh-native mut+alloc+free
35 30 5 18.0 osh-native mut+alloc+free+gc
37 30 7 18.0 osh-native mut+alloc+free+gc+exit
42 32 10 32.5 _bin/cxx-opt+nopool/osh mut+alloc
49 43 6 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 15 11 24.9 osh-native-souffle mut+alloc
28 19 9 25.3 osh-native-souffle mut+alloc+free
34 31 3 17.4 osh-native-souffle mut+alloc+free+gc
34 26 8 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 21 0 1.6 dash -
78 78 0 3.3 bash -
366 190 198 3.4 zsh -
49 39 10 84.1 bumpleak/osh mut
60 53 6 85.6 _bin/cxx-opt+bumproot/osh mut
71 59 12 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 67 30 73.5 osh-native mut+alloc
103 71 32 75.4 osh-native mut+alloc+free
156 130 26 49.7 osh-native mut+alloc+free+gc
159 141 18 50.3 osh-native mut+alloc+free+gc+exit
139 94 45 98.9 _bin/cxx-opt+nopool/osh mut+alloc
221 190 31 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 52 34 73.3 osh-native-souffle mut+alloc
94 68 26 74.8 osh-native-souffle mut+alloc+free
147 128 19 49.5 osh-native-souffle mut+alloc+free+gc
154 129 25 50.2 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 4 3 3.3 zsh -
6 4 2 11.9 bumpleak/osh mut
6 5 2 10.7 _bin/cxx-opt+bumproot/osh mut
7 6 2 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.0 osh-native mut+alloc
9 7 2 10.2 osh-native mut+alloc+free
9 7 2 8.4 osh-native mut+alloc+free+gc
9 7 2 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 11 1 9.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 6 2 9.6 osh-native-souffle mut+alloc+free
9 6 3 8.0 osh-native-souffle mut+alloc+free+gc
9 6 3 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 27 2 2.8 bash -
23 17 6 3.4 zsh -
18 13 6 32.2 bumpleak/osh mut
26 22 4 32.9 _bin/cxx-opt+bumproot/osh mut
28 23 5 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 22 14 26.3 osh-native mut+alloc
39 30 9 26.6 osh-native mut+alloc+free
28 27 1 8.0 osh-native mut+alloc+free+gc
29 27 2 8.0 osh-native mut+alloc+free+gc+exit
53 35 18 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 34 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 9 25.7 osh-native-souffle mut+alloc
31 23 8 26.2 osh-native-souffle mut+alloc+free
22 20 2 7.6 osh-native-souffle mut+alloc+free+gc
22 18 4 7.5 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 68 4 3.1 bash -
166 117 49 55.6 bumpleak/osh mut
179 129 50 56.2 _bin/cxx-opt+bumproot/osh mut
197 135 62 57.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 137 76 48.7 osh-native mut+alloc
219 146 73 50.6 osh-native mut+alloc+free
182 131 51 8.9 osh-native mut+alloc+free+gc
184 136 48 8.8 osh-native mut+alloc+free+gc+exit
233 133 100 64.4 _bin/cxx-opt+nopool/osh mut+alloc
212 156 56 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 131 73 48.3 osh-native-souffle mut+alloc
210 140 71 50.2 osh-native-souffle mut+alloc+free
174 122 52 8.3 osh-native-souffle mut+alloc+free+gc
174 118 56 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 7 3.4 dash -
19 11 9 4.3 bash -
17 7 10 3.5 zsh -
18 6 12 11.7 bumpleak/osh mut
20 8 13 13.1 _bin/cxx-opt+bumproot/osh mut
20 10 11 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 8 14 11.1 osh-native mut+alloc
22 12 11 11.1 osh-native mut+alloc+free
22 10 13 9.0 osh-native mut+alloc+free+gc
23 9 14 9.2 osh-native mut+alloc+free+gc+exit
25 10 15 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 14 12 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 10 10 10.7 osh-native-souffle mut+alloc
21 14 8 10.9 osh-native-souffle mut+alloc+free
21 15 6 8.7 osh-native-souffle mut+alloc+free+gc
22 9 14 8.8 osh-native-souffle mut+alloc+free+gc+exit