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 4 10 12.0 17.7 476,679 1,282 6 408,748 5 204,374 osh-native
parse.configure-coreutils 177 27 78 46.1 51.4 1,653,267 4,764 12 1,069,114 6 798,638 osh-native
parse.abuild 9 1 1 2.6 8.5 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 182 0 4 10.6 8.7 995,212 27,376 21 50,000 0 3,817 osh-native
ex.abuild-print-help 23 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
6 6 0 1.6 dash -
23 23 0 2.9 bash -
105 67 44 3.4 zsh -
16 16 0 29.5 bumpleak/osh mut
20 16 4 29.8 _bin/cxx-opt+bumproot/osh mut
22 13 9 28.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.0 osh-native mut+alloc
31 19 12 25.6 osh-native mut+alloc+free
36 28 8 17.7 osh-native mut+alloc+free+gc
37 37 0 17.8 osh-native mut+alloc+free+gc+exit
43 39 4 33.5 _bin/cxx-opt+nopool/osh mut+alloc
50 38 11 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 -
378 195 204 3.5 zsh -
50 38 11 84.2 bumpleak/osh mut
59 48 12 85.6 _bin/cxx-opt+bumproot/osh mut
70 47 23 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 74 25 73.4 osh-native mut+alloc
107 71 35 75.3 osh-native mut+alloc+free
177 153 24 51.4 osh-native mut+alloc+free+gc
172 151 20 52.2 osh-native mut+alloc+free+gc+exit
138 102 35 99.0 _bin/cxx-opt+nopool/osh mut+alloc
222 194 28 72.7 _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 0 2 1.4 dash -
6 6 0 2.9 bash -
8 4 4 3.4 zsh -
6 0 6 11.7 bumpleak/osh mut
7 7 0 11.6 _bin/cxx-opt+bumproot/osh mut
8 8 0 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 0 8 10.0 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 12 0 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 0 11 9.3 _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.6 dash -
29 28 0 2.9 bash -
23 16 8 3.3 zsh -
20 8 12 32.9 bumpleak/osh mut
26 25 0 31.6 _bin/cxx-opt+bumproot/osh mut
27 18 9 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.2 osh-native mut+alloc
38 27 11 26.6 osh-native mut+alloc+free
29 28 0 7.7 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
54 46 8 35.9 _bin/cxx-opt+nopool/osh mut+alloc
36 32 4 9.5 _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
74 70 4 3.1 bash -
166 95 71 55.1 bumpleak/osh mut
179 111 67 56.2 _bin/cxx-opt+bumproot/osh mut
191 155 36 56.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 148 64 47.1 osh-native mut+alloc
217 138 79 48.8 osh-native mut+alloc+free
182 119 63 8.7 osh-native mut+alloc+free+gc
181 141 40 8.7 osh-native mut+alloc+free+gc+exit
232 144 88 64.2 _bin/cxx-opt+nopool/osh mut+alloc
206 153 52 10.1 _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 9 1 3.7 dash -
19 15 5 4.3 bash -
18 9 10 3.5 zsh -
20 18 2 12.4 bumpleak/osh mut
20 13 7 12.0 _bin/cxx-opt+bumproot/osh mut
22 15 7 13.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 16 6 11.0 osh-native mut+alloc
23 13 10 11.0 osh-native mut+alloc+free
23 17 6 8.9 osh-native mut+alloc+free+gc
23 20 4 9.0 osh-native mut+alloc+free+gc+exit
25 22 4 12.4 _bin/cxx-opt+nopool/osh mut+alloc
26 19 7 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc