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,687 1,282 6 408,758 5 204,379 osh-native
parse.configure-coreutils 177 28 86 46.1 51.6 1,653,275 4,764 12 1,069,124 6 798,643 osh-native
parse.abuild 9 1 2 2.6 8.3 101,878 180 2 75,100 1 37,550 osh-native
ex.compute-fib 28 0 2 2.6 7.9 584,143 31,810 12 50,000 0 2,827 osh-native
ex.bashcomp-parse-help 181 0 4 10.6 8.7 995,220 27,376 21 50,000 0 3,822 osh-native
ex.abuild-print-help 23 1 2 2.8 9.0 116,287 478 3 85,336 1 42,668 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 -
24 23 0 3.1 bash -
106 58 55 3.4 zsh -
17 4 12 27.9 bumpleak/osh mut
20 16 4 29.0 _bin/cxx-opt+bumproot/osh mut
24 16 8 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 23 8 25.0 osh-native mut+alloc
34 21 13 25.6 osh-native mut+alloc+free
37 29 8 17.8 osh-native mut+alloc+free+gc
40 24 16 18.0 osh-native mut+alloc+free+gc+exit
44 36 8 33.5 _bin/cxx-opt+nopool/osh mut+alloc
52 44 8 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 -
80 76 4 3.3 bash -
382 212 191 3.5 zsh -
48 36 12 85.3 bumpleak/osh mut
60 52 8 85.7 _bin/cxx-opt+bumproot/osh mut
72 59 12 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 48 51 73.4 osh-native mut+alloc
112 80 32 75.0 osh-native mut+alloc+free
177 146 31 51.6 osh-native mut+alloc+free+gc
191 154 36 52.2 osh-native mut+alloc+free+gc+exit
140 96 44 98.9 _bin/cxx-opt+nopool/osh mut+alloc
244 203 40 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.3 dash -
6 3 3 3.0 bash -
8 8 0 3.3 zsh -
6 0 6 11.8 bumpleak/osh mut
7 7 0 11.2 _bin/cxx-opt+bumproot/osh mut
8 4 4 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 0 9 10.0 osh-native mut+alloc
10 6 3 9.8 osh-native mut+alloc+free
9 5 5 8.3 osh-native mut+alloc+free+gc
10 5 5 8.5 osh-native mut+alloc+free+gc+exit
12 12 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 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 11 0 1.4 dash -
29 22 7 2.8 bash -
24 12 12 3.3 zsh -
19 15 4 31.5 bumpleak/osh mut
26 22 4 32.1 _bin/cxx-opt+bumproot/osh mut
29 28 0 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 20 16 26.3 osh-native mut+alloc
40 28 12 26.7 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
54 41 12 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 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
77 69 8 3.1 bash -
169 124 44 53.9 bumpleak/osh mut
181 125 56 55.8 _bin/cxx-opt+bumproot/osh mut
194 138 55 56.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 115 95 47.1 osh-native mut+alloc
221 156 64 48.8 osh-native mut+alloc+free
181 129 52 8.7 osh-native mut+alloc+free+gc
181 137 44 8.7 osh-native mut+alloc+free+gc+exit
233 128 104 62.9 _bin/cxx-opt+nopool/osh mut+alloc
212 160 52 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
10 6 4 3.5 dash -
20 13 8 4.5 bash -
18 12 6 3.5 zsh -
19 11 8 11.6 bumpleak/osh mut
20 11 9 12.1 _bin/cxx-opt+bumproot/osh mut
21 20 2 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
23 12 11 10.9 osh-native mut+alloc
24 14 10 10.9 osh-native mut+alloc+free
23 14 10 9.0 osh-native mut+alloc+free+gc
24 17 7 8.8 osh-native mut+alloc+free+gc+exit
25 11 15 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 20 7 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc