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 37 4 10 12.0 18.0 476,772 1,282 6 406,624 5 203,312 osh-native
parse.configure-cpython 33 3 9 12.0 17.3 476,772 1,282 6 406,614 5 203,307 osh-native-souffle
parse.configure-coreutils 150 26 63 44.5 50.0 1,653,360 4,764 12 1,025,546 6 764,316 osh-native
parse.configure-coreutils 147 26 69 44.5 49.3 1,653,359 4,764 12 1,025,536 6 764,311 osh-native-souffle
parse.abuild 10 1 1 2.6 8.7 101,963 180 2 75,050 1 37,525 osh-native
parse.abuild 9 1 1 2.6 8.1 101,963 180 2 75,040 1 37,520 osh-native-souffle
ex.compute-fib 29 0 2 2.2 8.0 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 189 0 5 11.1 8.9 1,021,043 15,258 22 50,000 0 3,917 osh-native
ex.bashcomp-parse-help 180 0 4 11.1 8.4 1,021,042 15,258 22 50,000 0 3,917 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.2 116,361 277 3 85,266 1 42,633 osh-native
ex.abuild-print-help 22 1 2 2.8 8.5 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
7 6 1 1.4 dash -
24 22 2 3.0 bash -
111 67 51 3.4 zsh -
17 10 7 28.0 bumpleak/osh mut
20 15 5 29.8 _bin/cxx-opt+bumproot/osh mut
23 19 3 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.3 osh-native mut+alloc
33 22 11 25.7 osh-native mut+alloc+free
37 30 7 18.0 osh-native mut+alloc+free+gc
37 30 7 18.0 osh-native mut+alloc+free+gc+exit
43 30 13 32.4 _bin/cxx-opt+nopool/osh mut+alloc
51 41 10 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 18 11 24.9 osh-native-souffle mut+alloc
29 17 12 25.4 osh-native-souffle mut+alloc+free
33 27 5 17.3 osh-native-souffle mut+alloc+free+gc
33 29 4 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 18 3 1.6 dash -
82 80 2 3.3 bash -
391 231 181 3.7 zsh -
51 38 12 84.3 bumpleak/osh mut
61 51 10 85.6 _bin/cxx-opt+bumproot/osh mut
71 52 19 84.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
100 60 40 73.4 osh-native mut+alloc
109 78 30 75.4 osh-native mut+alloc+free
150 123 27 50.0 osh-native mut+alloc+free+gc
157 138 19 50.5 osh-native mut+alloc+free+gc+exit
145 97 47 99.0 _bin/cxx-opt+nopool/osh mut+alloc
216 184 32 66.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 62 27 73.0 osh-native-souffle mut+alloc
97 63 34 74.9 osh-native-souffle mut+alloc+free
147 127 20 49.3 osh-native-souffle mut+alloc+free+gc
149 127 22 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 -
6 6 0 3.0 bash -
8 4 4 3.4 zsh -
6 4 2 11.9 bumpleak/osh mut
6 4 3 12.4 _bin/cxx-opt+bumproot/osh mut
8 4 4 11.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 5 10.1 osh-native mut+alloc
9 5 4 10.2 osh-native mut+alloc+free
10 7 3 8.7 osh-native mut+alloc+free+gc
10 8 2 8.8 osh-native mut+alloc+free+gc+exit
12 8 5 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
9 4 5 9.6 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
9 7 2 8.1 osh-native-souffle mut+alloc+free+gc
9 7 2 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 -
29 29 0 2.9 bash -
23 13 9 3.3 zsh -
19 17 2 31.2 bumpleak/osh mut
26 19 8 32.4 _bin/cxx-opt+bumproot/osh mut
29 25 4 31.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 26 11 26.3 osh-native mut+alloc
38 27 11 26.7 osh-native mut+alloc+free
29 28 1 8.0 osh-native mut+alloc+free+gc
29 27 2 8.0 osh-native mut+alloc+free+gc+exit
56 45 11 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 36 2 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 12 26.0 osh-native-souffle mut+alloc
32 23 9 26.2 osh-native-souffle mut+alloc+free
22 19 3 7.6 osh-native-souffle mut+alloc+free+gc
22 19 3 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
75 74 1 3.1 bash -
172 110 62 55.7 bumpleak/osh mut
185 134 51 57.9 _bin/cxx-opt+bumproot/osh mut
198 135 64 57.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
219 151 68 48.7 osh-native mut+alloc
230 161 70 50.8 osh-native mut+alloc+free
189 131 58 8.9 osh-native mut+alloc+free+gc
193 149 43 8.7 osh-native mut+alloc+free+gc+exit
238 153 84 64.5 _bin/cxx-opt+nopool/osh mut+alloc
220 172 48 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
210 134 76 48.3 osh-native-souffle mut+alloc
215 144 71 50.3 osh-native-souffle mut+alloc+free
180 138 42 8.4 osh-native-souffle mut+alloc+free+gc
179 129 50 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
10 3 7 3.5 dash -
22 12 10 4.5 bash -
18 9 10 3.5 zsh -
19 9 10 13.0 bumpleak/osh mut
21 9 12 12.1 _bin/cxx-opt+bumproot/osh mut
21 14 8 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 9 14 11.1 osh-native mut+alloc
23 12 11 11.3 osh-native mut+alloc+free
23 15 9 9.2 osh-native mut+alloc+free+gc
23 14 9 9.2 osh-native mut+alloc+free+gc+exit
25 13 13 12.8 _bin/cxx-opt+nopool/osh mut+alloc
27 19 9 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 9 13 10.6 osh-native-souffle mut+alloc
23 11 12 10.7 osh-native-souffle mut+alloc+free
22 12 11 8.5 osh-native-souffle mut+alloc+free+gc
23 11 12 8.5 osh-native-souffle mut+alloc+free+gc+exit