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.8 476,679 1,282 6 408,748 5 204,374 osh-native
parse.configure-coreutils 161 29 73 46.1 51.5 1,653,267 4,764 12 1,069,114 6 798,638 osh-native
parse.abuild 9 1 1 2.6 8.4 101,870 180 2 75,090 1 37,545 osh-native
ex.compute-fib 29 0 2 2.6 7.7 584,135 31,810 12 50,000 0 2,822 osh-native
ex.bashcomp-parse-help 181 0 4 10.6 8.7 995,212 27,376 21 50,000 0 3,817 osh-native
ex.abuild-print-help 24 1 2 2.8 8.9 116,279 478 3 85,326 1 42,663 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 3 3 1.4 dash -
24 23 0 3.0 bash -
118 67 54 3.4 zsh -
17 8 8 29.0 bumpleak/osh mut
20 13 7 30.0 _bin/cxx-opt+bumproot/osh mut
23 19 4 29.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 26 4 25.2 osh-native mut+alloc
33 21 12 25.6 osh-native mut+alloc+free
37 26 11 17.8 osh-native mut+alloc+free+gc
38 26 11 18.0 osh-native mut+alloc+free+gc+exit
44 24 20 32.3 _bin/cxx-opt+nopool/osh mut+alloc
58 45 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 22 0 1.6 dash -
77 77 0 3.3 bash -
398 223 193 3.5 zsh -
49 49 0 85.7 bumpleak/osh mut
60 44 16 84.7 _bin/cxx-opt+bumproot/osh mut
71 59 12 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 59 39 73.3 osh-native mut+alloc
107 82 25 75.3 osh-native mut+alloc+free
161 125 36 51.5 osh-native mut+alloc+free+gc
179 143 36 52.1 osh-native mut+alloc+free+gc+exit
142 102 39 99.5 _bin/cxx-opt+nopool/osh mut+alloc
248 211 37 73.2 _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 6 0 3.0 bash -
8 4 4 3.1 zsh -
6 3 3 10.4 bumpleak/osh mut
7 0 7 10.7 _bin/cxx-opt+bumproot/osh mut
8 8 0 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.0 osh-native mut+alloc
9 6 3 10.1 osh-native mut+alloc+free
9 3 6 8.4 osh-native mut+alloc+free+gc
10 5 5 8.3 osh-native mut+alloc+free+gc+exit
14 9 5 11.4 _bin/cxx-opt+nopool/osh mut+alloc
13 8 4 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
13 9 4 1.3 dash -
28 24 4 3.0 bash -
24 24 0 3.3 zsh -
19 15 4 31.3 bumpleak/osh mut
26 25 0 31.9 _bin/cxx-opt+bumproot/osh mut
30 25 4 33.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 20 16 26.3 osh-native mut+alloc
40 32 8 26.7 osh-native mut+alloc+free
29 24 4 7.7 osh-native mut+alloc+free+gc
28 24 4 7.7 osh-native mut+alloc+free+gc+exit
55 43 12 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.3 _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 73 0 3.1 bash -
172 88 84 55.4 bumpleak/osh mut
183 119 63 54.5 _bin/cxx-opt+bumproot/osh mut
197 128 68 56.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
217 108 108 47.1 osh-native mut+alloc
224 188 36 48.9 osh-native mut+alloc+free
181 122 59 8.7 osh-native mut+alloc+free+gc
184 136 48 8.5 osh-native mut+alloc+free+gc+exit
236 176 60 63.4 _bin/cxx-opt+nopool/osh mut+alloc
211 174 36 10.2 _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
12 5 7 3.4 dash -
22 13 9 4.5 bash -
19 10 9 3.4 zsh -
20 10 10 11.4 bumpleak/osh mut
23 22 1 12.6 _bin/cxx-opt+bumproot/osh mut
20 15 6 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
24 19 5 11.0 osh-native mut+alloc
26 19 6 11.1 osh-native mut+alloc+free
24 17 7 8.9 osh-native mut+alloc+free+gc
25 19 5 8.8 osh-native mut+alloc+free+gc+exit
26 16 10 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 17 10 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc