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 17.7 476,691 1,282 6 408,764 5 204,382 osh-native
parse.configure-coreutils 160 26 71 46.1 51.5 1,653,279 4,764 12 1,069,130 6 798,646 osh-native
parse.abuild 9 1 1 2.6 8.5 101,882 180 2 75,106 1 37,553 osh-native
ex.compute-fib 28 0 2 2.6 7.9 584,147 31,810 12 50,000 0 2,829 osh-native
ex.bashcomp-parse-help 181 0 4 10.6 8.8 995,224 27,376 21 50,000 0 3,825 osh-native
ex.abuild-print-help 23 1 2 2.8 8.7 116,291 478 3 85,342 1 42,671 osh-native

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 19 4 3.0 bash -
105 66 45 3.4 zsh -
16 16 0 28.9 bumpleak/osh mut
20 12 8 29.0 _bin/cxx-opt+bumproot/osh mut
26 18 7 30.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.2 osh-native mut+alloc
32 24 8 25.4 osh-native mut+alloc+free
37 24 12 17.7 osh-native mut+alloc+free+gc
37 18 18 18.0 osh-native mut+alloc+free+gc+exit
43 35 8 32.9 _bin/cxx-opt+nopool/osh mut+alloc
49 36 12 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

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
22 18 4 1.6 dash -
77 77 0 3.3 bash -
378 232 168 3.7 zsh -
49 41 8 85.4 bumpleak/osh mut
60 56 4 85.3 _bin/cxx-opt+bumproot/osh mut
70 62 8 86.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 71 27 73.4 osh-native mut+alloc
108 72 36 75.3 osh-native mut+alloc+free
160 139 20 51.5 osh-native mut+alloc+free+gc
161 141 20 50.6 osh-native mut+alloc+free+gc+exit
139 71 67 99.5 _bin/cxx-opt+nopool/osh mut+alloc
219 199 20 73.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

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.4 dash -
6 3 3 2.9 bash -
8 4 4 3.3 zsh -
6 6 0 11.0 bumpleak/osh mut
7 3 3 11.2 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
9 0 9 10.1 osh-native mut+alloc+free
9 5 5 8.5 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
12 4 8 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 4 8 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

ex.compute-fib

A synthetic benchmark for POSIX shell arithmetic.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
11 10 0 1.3 dash -
29 24 4 3.0 bash -
24 23 0 3.3 zsh -
20 16 4 32.0 bumpleak/osh mut
26 25 0 31.4 _bin/cxx-opt+bumproot/osh mut
29 28 0 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 24 12 26.3 osh-native mut+alloc
39 26 13 26.7 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
54 33 21 36.4 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

ex.bashcomp-parse-help

A realistic bash-completion workload.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
73 65 8 3.0 bash -
167 91 75 55.7 bumpleak/osh mut
179 142 36 56.2 _bin/cxx-opt+bumproot/osh mut
194 119 75 55.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 135 76 47.1 osh-native mut+alloc
221 128 92 48.9 osh-native mut+alloc+free
181 128 52 8.8 osh-native mut+alloc+free+gc
181 125 56 8.8 osh-native mut+alloc+free+gc+exit
233 160 72 63.4 _bin/cxx-opt+nopool/osh mut+alloc
207 150 57 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

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 8 1 3.4 dash -
20 14 7 4.5 bash -
18 5 13 3.4 zsh -
19 11 8 11.4 bumpleak/osh mut
20 17 3 13.8 _bin/cxx-opt+bumproot/osh mut
22 12 11 13.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 15 8 10.6 osh-native mut+alloc
23 17 7 10.9 osh-native mut+alloc+free
23 15 8 8.7 osh-native mut+alloc+free+gc
24 13 11 8.9 osh-native mut+alloc+free+gc+exit
25 20 5 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 19 7 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc