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 9 12.0 18.0 476,766 1,282 6 406,618 5 203,309 osh-native
parse.configure-cpython 34 4 10 12.0 17.6 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 159 25 73 44.5 49.7 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 144 24 67 44.5 49.4 1,653,353 4,764 12 1,025,530 6 764,308 osh-native-souffle
parse.abuild 9 1 1 2.6 8.4 101,957 180 2 75,044 1 37,522 osh-native
parse.abuild 9 1 2 2.6 8.3 101,957 180 2 75,034 1 37,517 osh-native-souffle
ex.compute-fib 28 0 2 2.2 7.9 579,721 22,608 12 50,000 0 2,926 osh-native
ex.compute-fib 21 0 1 2.2 7.6 579,721 22,608 12 50,000 0 2,921 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 11.1 8.8 1,021,036 15,258 22 50,000 0 3,915 osh-native
ex.bashcomp-parse-help 173 0 4 11.1 8.4 1,021,035 15,258 22 50,000 0 3,915 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 9.0 116,340 277 3 85,262 1 42,631 osh-native
ex.abuild-print-help 20 1 2 2.8 8.7 116,340 277 3 85,252 1 42,626 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 23 0 3.0 bash -
106 57 55 3.4 zsh -
17 13 4 27.9 bumpleak/osh mut
20 16 3 29.6 _bin/cxx-opt+bumproot/osh mut
22 13 9 28.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.3 osh-native mut+alloc
32 24 8 25.7 osh-native mut+alloc+free
36 28 8 18.0 osh-native mut+alloc+free+gc
36 30 6 18.0 osh-native mut+alloc+free+gc+exit
42 28 14 32.5 _bin/cxx-opt+nopool/osh mut+alloc
48 37 11 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 18 9 24.9 osh-native-souffle mut+alloc
29 23 6 25.3 osh-native-souffle mut+alloc+free
34 28 6 17.6 osh-native-souffle mut+alloc+free+gc
34 27 7 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 20 1 1.6 dash -
80 77 3 3.3 bash -
361 206 175 3.5 zsh -
49 38 11 85.1 bumpleak/osh mut
60 48 12 84.2 _bin/cxx-opt+bumproot/osh mut
69 56 13 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 70 26 73.5 osh-native mut+alloc
105 69 37 75.4 osh-native mut+alloc+free
159 139 20 49.7 osh-native mut+alloc+free+gc
165 140 25 50.3 osh-native mut+alloc+free+gc+exit
138 98 39 99.0 _bin/cxx-opt+nopool/osh mut+alloc
235 199 36 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
93 53 40 73.2 osh-native-souffle mut+alloc
96 67 29 75.0 osh-native-souffle mut+alloc+free
144 124 20 49.4 osh-native-souffle mut+alloc+free+gc
152 131 21 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 1 3.0 bash -
7 3 4 3.3 zsh -
6 3 3 11.0 bumpleak/osh mut
7 6 1 12.6 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 7 1 9.8 osh-native mut+alloc
9 4 5 10.2 osh-native mut+alloc+free
9 6 3 8.4 osh-native mut+alloc+free+gc
10 7 2 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 7 5 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 2 6 9.6 osh-native-souffle mut+alloc
8 3 5 9.7 osh-native-souffle mut+alloc+free
9 7 2 8.3 osh-native-souffle mut+alloc+free+gc
9 7 2 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.4 dash -
28 26 2 2.9 bash -
23 16 7 3.3 zsh -
19 17 2 31.8 bumpleak/osh mut
26 22 4 32.8 _bin/cxx-opt+bumproot/osh mut
28 22 6 32.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 26 10 26.5 osh-native mut+alloc
37 27 10 26.6 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 26 2 8.1 osh-native mut+alloc+free+gc+exit
53 35 18 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 35 2 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 17 14 26.0 osh-native-souffle mut+alloc
31 21 10 26.3 osh-native-souffle mut+alloc+free
21 19 2 7.6 osh-native-souffle mut+alloc+free+gc
21 18 3 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 71 2 3.1 bash -
170 120 50 57.1 bumpleak/osh mut
183 129 54 56.7 _bin/cxx-opt+bumproot/osh mut
196 123 73 57.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 147 68 49.0 osh-native mut+alloc
222 141 80 50.8 osh-native mut+alloc+free
183 131 51 8.8 osh-native mut+alloc+free+gc
180 127 54 8.9 osh-native mut+alloc+free+gc+exit
234 152 81 64.5 _bin/cxx-opt+nopool/osh mut+alloc
212 162 50 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 139 66 48.4 osh-native-souffle mut+alloc
212 131 81 50.1 osh-native-souffle mut+alloc+free
173 122 51 8.4 osh-native-souffle mut+alloc+free+gc
175 124 51 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 12 7 4.5 bash -
17 6 11 3.5 zsh -
19 6 13 12.5 bumpleak/osh mut
19 7 13 12.1 _bin/cxx-opt+bumproot/osh mut
21 10 12 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 7 14 11.3 osh-native mut+alloc
22 9 13 11.3 osh-native mut+alloc+free
21 10 12 9.0 osh-native mut+alloc+free+gc
23 12 11 9.2 osh-native mut+alloc+free+gc+exit
24 9 15 12.8 _bin/cxx-opt+nopool/osh mut+alloc
24 13 12 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 10 11 10.6 osh-native-souffle mut+alloc
21 11 11 10.7 osh-native-souffle mut+alloc+free
20 10 11 8.7 osh-native-souffle mut+alloc+free+gc
21 13 9 8.7 osh-native-souffle mut+alloc+free+gc+exit