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 35 3 9 12.0 18.0 476,636 1,282 6 408,686 5 204,343 osh-native
parse.configure-coreutils 148 25 60 46.1 51.3 1,653,224 4,764 12 1,069,052 6 798,607 osh-native
parse.abuild 9 1 1 2.6 8.4 101,827 180 2 75,028 1 37,514 osh-native
ex.compute-fib 29 0 1 3.1 7.7 584,088 31,810 12 50,000 0 2,788 osh-native
ex.bashcomp-parse-help 182 0 3 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.4 dash -
23 23 0 3.0 bash -
105 57 54 3.4 zsh -
17 17 0 29.3 bumpleak/osh mut
20 20 0 30.1 _bin/cxx-opt+bumproot/osh mut
23 18 4 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 24.9 osh-native mut+alloc
32 24 8 25.6 osh-native mut+alloc+free
35 30 4 18.0 osh-native mut+alloc+free+gc
36 36 0 18.0 osh-native mut+alloc+free+gc+exit
45 36 8 33.2 _bin/cxx-opt+nopool/osh mut+alloc
48 32 16 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.4 dash -
78 78 0 3.3 bash -
378 185 213 3.5 zsh -
50 37 12 84.7 bumpleak/osh mut
60 48 12 85.6 _bin/cxx-opt+bumproot/osh mut
71 50 21 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 53 45 73.4 osh-native mut+alloc
105 56 48 75.3 osh-native mut+alloc+free
148 124 24 51.3 osh-native mut+alloc+free+gc
153 129 24 52.1 osh-native mut+alloc+free+gc+exit
139 99 40 99.4 _bin/cxx-opt+nopool/osh mut+alloc
209 177 32 71.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 2 0 1.3 dash -
6 3 3 3.0 bash -
8 8 0 3.3 zsh -
6 6 0 11.0 bumpleak/osh mut
6 6 0 12.7 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.8 osh-native mut+alloc
9 8 0 10.0 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 9 0 8.4 osh-native mut+alloc+free+gc+exit
12 4 8 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 7 4 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
10 7 3 1.4 dash -
29 29 0 2.9 bash -
24 16 8 3.3 zsh -
19 19 0 31.1 bumpleak/osh mut
26 22 4 33.2 _bin/cxx-opt+bumproot/osh mut
30 26 4 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 28 8 26.7 osh-native mut+alloc
39 31 8 27.1 osh-native mut+alloc+free
29 28 0 7.7 osh-native mut+alloc+free+gc
28 20 8 7.9 osh-native mut+alloc+free+gc+exit
54 41 12 36.5 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 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 73 0 3.3 bash -
170 134 35 55.4 bumpleak/osh mut
180 108 72 56.1 _bin/cxx-opt+bumproot/osh mut
196 128 68 56.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 148 64 48.7 osh-native mut+alloc
218 119 99 50.7 osh-native mut+alloc+free
182 118 63 8.7 osh-native mut+alloc+free+gc
182 127 55 8.7 osh-native mut+alloc+free+gc+exit
233 161 72 65.9 _bin/cxx-opt+nopool/osh mut+alloc
211 143 68 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
9 9 1 3.5 dash -
20 13 7 4.5 bash -
18 11 7 3.5 zsh -
19 11 8 12.3 bumpleak/osh mut
21 14 8 13.3 _bin/cxx-opt+bumproot/osh mut
22 17 6 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 15 7 10.6 osh-native mut+alloc
23 11 12 11.1 osh-native mut+alloc+free
23 16 7 8.9 osh-native mut+alloc+free+gc
23 18 5 8.8 osh-native mut+alloc+free+gc+exit
25 11 14 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 17 8 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc