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,636 1,282 6 408,686 5 204,343 osh-native
parse.configure-coreutils 163 27 73 46.1 51.5 1,653,224 4,764 12 1,069,052 6 798,607 osh-native
parse.abuild 9 1 1 2.6 8.3 101,827 180 2 75,028 1 37,514 osh-native
ex.compute-fib 29 0 1 3.1 7.9 584,088 31,810 12 50,000 0 2,788 osh-native
ex.bashcomp-parse-help 183 0 4 12.3 8.7 1,001,962 27,376 21 50,000 0 3,776 osh-native
ex.abuild-print-help 23 1 2 2.8 8.9 116,032 478 3 85,262 1 42,631 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 -
27 27 0 2.9 bash -
104 59 52 3.4 zsh -
17 13 3 27.7 bumpleak/osh mut
20 12 8 30.0 _bin/cxx-opt+bumproot/osh mut
23 8 15 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 23 8 25.2 osh-native mut+alloc
32 16 16 25.4 osh-native mut+alloc+free
37 29 8 17.8 osh-native mut+alloc+free+gc
38 30 8 18.0 osh-native mut+alloc+free+gc+exit
44 32 12 32.8 _bin/cxx-opt+nopool/osh mut+alloc
58 46 12 21.9 _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 21 0 1.6 dash -
78 78 0 3.3 bash -
379 248 152 3.5 zsh -
50 31 19 85.1 bumpleak/osh mut
61 52 8 84.6 _bin/cxx-opt+bumproot/osh mut
71 63 8 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
102 85 16 73.4 osh-native mut+alloc
107 68 40 75.1 osh-native mut+alloc+free
163 135 28 51.5 osh-native mut+alloc+free+gc
171 150 20 52.3 osh-native mut+alloc+free+gc+exit
140 84 56 97.9 _bin/cxx-opt+nopool/osh mut+alloc
241 185 56 73.5 _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 2.9 bash -
8 8 0 3.4 zsh -
6 3 3 11.2 bumpleak/osh mut
6 6 0 12.2 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 9.8 osh-native mut+alloc
9 5 5 10.0 osh-native mut+alloc+free
9 6 3 8.3 osh-native mut+alloc+free+gc
9 9 0 8.4 osh-native mut+alloc+free+gc+exit
12 8 4 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.4 _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
10 10 0 1.4 dash -
29 29 0 3.0 bash -
24 19 4 3.4 zsh -
19 16 4 31.5 bumpleak/osh mut
26 26 0 33.3 _bin/cxx-opt+bumproot/osh mut
30 25 4 33.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 20 16 26.7 osh-native mut+alloc
39 30 9 27.1 osh-native mut+alloc+free
29 29 0 7.9 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
54 38 15 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 29 7 9.4 _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 68 4 3.1 bash -
171 107 64 57.0 bumpleak/osh mut
182 121 61 58.0 _bin/cxx-opt+bumproot/osh mut
195 128 68 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 133 80 48.9 osh-native mut+alloc
222 153 69 50.6 osh-native mut+alloc+free
183 107 75 8.7 osh-native mut+alloc+free+gc
185 124 60 8.5 osh-native mut+alloc+free+gc+exit
235 143 92 65.1 _bin/cxx-opt+nopool/osh mut+alloc
217 153 64 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 4 6 3.4 dash -
20 13 8 4.5 bash -
18 6 12 3.5 zsh -
18 7 12 11.7 bumpleak/osh mut
19 8 12 11.8 _bin/cxx-opt+bumproot/osh mut
22 11 11 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 12 10 10.9 osh-native mut+alloc
22 20 2 11.0 osh-native mut+alloc+free
23 20 3 8.9 osh-native mut+alloc+free+gc
23 21 2 8.7 osh-native mut+alloc+free+gc+exit
25 15 10 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 14 11 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc