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,772 1,282 6 406,624 5 203,312 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,772 1,282 6 406,614 5 203,307 osh-native-souffle
parse.configure-coreutils 156 26 69 44.5 49.8 1,653,360 4,764 12 1,025,546 6 764,316 osh-native
parse.configure-coreutils 140 25 65 44.5 49.4 1,653,359 4,764 12 1,025,536 6 764,311 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,963 180 2 75,050 1 37,525 osh-native
parse.abuild 8 1 1 2.6 8.3 101,963 180 2 75,040 1 37,520 osh-native-souffle
ex.compute-fib 29 0 1 2.2 8.1 579,726 22,608 12 50,000 0 2,928 osh-native
ex.compute-fib 22 0 2 2.2 7.6 579,726 22,608 12 50,000 0 2,923 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 11.1 8.9 1,021,043 15,258 22 50,000 0 3,917 osh-native
ex.bashcomp-parse-help 174 0 4 11.1 8.4 1,021,042 15,258 22 50,000 0 3,917 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,361 277 3 85,266 1 42,633 osh-native
ex.abuild-print-help 20 1 2 2.8 8.7 116,361 277 3 85,256 1 42,628 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.4 dash -
23 22 1 3.0 bash -
100 55 51 3.4 zsh -
16 14 2 29.3 bumpleak/osh mut
19 16 3 29.9 _bin/cxx-opt+bumproot/osh mut
23 15 8 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 20 10 25.2 osh-native mut+alloc
31 26 5 25.6 osh-native mut+alloc+free
35 30 5 18.0 osh-native mut+alloc+free+gc
38 30 8 18.2 osh-native mut+alloc+free+gc+exit
42 31 11 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 31 16 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 17 9 24.8 osh-native-souffle mut+alloc
28 15 14 25.3 osh-native-souffle mut+alloc+free
32 23 9 17.4 osh-native-souffle mut+alloc+free+gc
34 28 6 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 75 3 3.1 bash -
366 203 184 3.5 zsh -
49 42 7 85.3 bumpleak/osh mut
60 53 7 86.1 _bin/cxx-opt+bumproot/osh mut
71 67 4 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 66 30 73.5 osh-native mut+alloc
103 64 39 75.4 osh-native mut+alloc+free
156 134 22 49.8 osh-native mut+alloc+free+gc
157 135 22 50.4 osh-native mut+alloc+free+gc+exit
137 105 32 99.0 _bin/cxx-opt+nopool/osh mut+alloc
228 209 19 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 59 28 73.1 osh-native-souffle mut+alloc
95 64 30 75.1 osh-native-souffle mut+alloc+free
140 125 15 49.4 osh-native-souffle mut+alloc+free+gc
150 130 20 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 5 3 3.3 zsh -
6 4 2 10.3 bumpleak/osh mut
7 4 3 11.1 _bin/cxx-opt+bumproot/osh mut
8 6 2 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 6 3 10.1 osh-native mut+alloc
9 8 1 10.1 osh-native mut+alloc+free
9 5 5 8.5 osh-native mut+alloc+free+gc
9 3 6 8.5 osh-native mut+alloc+free+gc+exit
12 7 5 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 6 6 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 3 9.6 osh-native-souffle mut+alloc
8 3 5 9.7 osh-native-souffle mut+alloc+free
8 8 0 8.3 osh-native-souffle mut+alloc+free+gc
9 5 4 8.3 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.6 dash -
28 28 0 3.0 bash -
23 19 4 3.1 zsh -
19 15 4 32.4 bumpleak/osh mut
26 23 3 31.5 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 22 15 26.2 osh-native mut+alloc
38 29 8 26.6 osh-native mut+alloc+free
29 25 4 8.1 osh-native mut+alloc+free+gc
28 23 5 8.1 osh-native mut+alloc+free+gc+exit
53 37 16 36.1 _bin/cxx-opt+nopool/osh mut+alloc
38 32 6 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 18 12 26.0 osh-native-souffle mut+alloc
31 19 12 26.1 osh-native-souffle mut+alloc+free
22 20 2 7.6 osh-native-souffle mut+alloc+free+gc
22 19 3 7.7 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 69 3 3.0 bash -
167 103 65 55.9 bumpleak/osh mut
181 127 54 57.4 _bin/cxx-opt+bumproot/osh mut
195 142 54 57.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 153 61 48.8 osh-native mut+alloc
223 147 76 50.7 osh-native mut+alloc+free
183 121 62 8.9 osh-native mut+alloc+free+gc
185 131 54 8.8 osh-native mut+alloc+free+gc+exit
232 144 88 64.7 _bin/cxx-opt+nopool/osh mut+alloc
209 148 61 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 132 74 48.5 osh-native-souffle mut+alloc
212 145 67 50.4 osh-native-souffle mut+alloc+free
174 127 47 8.4 osh-native-souffle mut+alloc+free+gc
176 120 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 5 5 3.5 dash -
19 9 10 4.3 bash -
17 6 11 3.5 zsh -
17 7 11 11.4 bumpleak/osh mut
19 11 8 12.4 _bin/cxx-opt+bumproot/osh mut
19 8 12 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 10 11.1 osh-native mut+alloc
22 11 12 11.3 osh-native mut+alloc+free
22 14 9 9.2 osh-native mut+alloc+free+gc
23 12 11 9.2 osh-native mut+alloc+free+gc+exit
25 11 14 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 15 10 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 9 11 10.5 osh-native-souffle mut+alloc
21 8 13 10.7 osh-native-souffle mut+alloc+free
20 13 8 8.7 osh-native-souffle mut+alloc+free+gc
21 13 9 8.7 osh-native-souffle mut+alloc+free+gc+exit