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 4 10 12.0 17.4 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 145 22 60 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 151 26 76 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 29 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.7 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 185 0 3 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.5 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 21 2 3.1 bash -
101 57 51 3.4 zsh -
16 12 4 29.1 bumpleak/osh mut
21 18 3 29.9 _bin/cxx-opt+bumproot/osh mut
22 19 3 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 17 13 25.2 osh-native mut+alloc
31 21 9 25.6 osh-native mut+alloc+free
35 27 8 17.8 osh-native mut+alloc+free+gc
36 27 9 18.2 osh-native mut+alloc+free+gc+exit
42 21 21 32.4 _bin/cxx-opt+nopool/osh mut+alloc
46 32 14 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 19 7 24.6 osh-native-souffle mut+alloc
28 14 13 25.4 osh-native-souffle mut+alloc+free
32 29 3 17.4 osh-native-souffle mut+alloc+free+gc
33 24 9 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 74 3 3.3 bash -
363 202 182 3.7 zsh -
48 39 10 84.2 bumpleak/osh mut
60 53 7 84.7 _bin/cxx-opt+bumproot/osh mut
70 59 10 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 61 37 73.4 osh-native mut+alloc
105 79 25 75.2 osh-native mut+alloc+free
145 120 25 49.7 osh-native mut+alloc+free+gc
150 132 18 50.3 osh-native mut+alloc+free+gc+exit
136 91 45 99.0 _bin/cxx-opt+nopool/osh mut+alloc
197 165 32 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 51 37 73.0 osh-native-souffle mut+alloc
94 66 28 74.7 osh-native-souffle mut+alloc+free
151 127 23 49.3 osh-native-souffle mut+alloc+free+gc
152 124 28 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 2 0 1.3 dash -
5 4 1 3.0 bash -
7 3 4 3.3 zsh -
6 4 2 11.4 bumpleak/osh mut
6 5 1 12.2 _bin/cxx-opt+bumproot/osh mut
7 5 2 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 10.0 osh-native mut+alloc
9 5 4 10.1 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 8 1 8.5 osh-native mut+alloc+free+gc+exit
12 6 6 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 9 2 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 4 3 9.7 osh-native-souffle mut+alloc
8 6 2 9.8 osh-native-souffle mut+alloc+free
9 6 3 7.9 osh-native-souffle mut+alloc+free+gc
10 5 5 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 10 0 1.4 dash -
28 27 1 2.9 bash -
23 19 4 3.4 zsh -
18 12 6 32.4 bumpleak/osh mut
25 21 4 31.3 _bin/cxx-opt+bumproot/osh mut
29 24 5 31.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.5 osh-native mut+alloc
37 28 9 26.6 osh-native mut+alloc+free
29 28 1 8.0 osh-native mut+alloc+free+gc
28 26 2 8.0 osh-native mut+alloc+free+gc+exit
53 33 19 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 15 15 26.0 osh-native-souffle mut+alloc
31 22 9 26.2 osh-native-souffle mut+alloc+free
22 20 2 7.7 osh-native-souffle mut+alloc+free+gc
22 18 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
74 71 3 3.1 bash -
166 110 56 55.6 bumpleak/osh mut
178 115 63 57.5 _bin/cxx-opt+bumproot/osh mut
197 137 59 58.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 137 77 48.6 osh-native mut+alloc
220 153 68 50.6 osh-native mut+alloc+free
185 143 42 8.9 osh-native mut+alloc+free+gc
183 135 48 8.8 osh-native mut+alloc+free+gc+exit
234 156 78 64.6 _bin/cxx-opt+nopool/osh mut+alloc
211 156 55 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 127 76 48.3 osh-native-souffle mut+alloc
211 146 64 50.0 osh-native-souffle mut+alloc+free
174 119 55 8.5 osh-native-souffle mut+alloc+free+gc
175 132 43 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 9 10 4.3 bash -
17 10 7 3.5 zsh -
17 8 10 11.7 bumpleak/osh mut
19 10 9 12.4 _bin/cxx-opt+bumproot/osh mut
20 9 12 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 7 14 11.0 osh-native mut+alloc
22 9 13 11.0 osh-native mut+alloc+free
22 13 9 9.0 osh-native mut+alloc+free+gc
22 13 10 9.0 osh-native mut+alloc+free+gc+exit
24 12 13 12.8 _bin/cxx-opt+nopool/osh mut+alloc
24 18 7 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 10 10 10.6 osh-native-souffle mut+alloc
21 11 11 10.5 osh-native-souffle mut+alloc+free
21 10 12 8.7 osh-native-souffle mut+alloc+free+gc
21 12 9 8.7 osh-native-souffle mut+alloc+free+gc+exit