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 38 4 11 12.0 17.8 476,690 1,282 6 408,758 5 204,379 osh-native
parse.configure-coreutils 181 29 90 46.1 51.6 1,653,278 4,764 12 1,069,124 6 798,643 osh-native
parse.abuild 9 1 1 2.6 8.5 101,881 180 2 75,100 1 37,550 osh-native
ex.compute-fib 29 0 1 2.4 7.9 584,146 31,810 12 50,000 0 2,826 osh-native
ex.bashcomp-parse-help 181 0 4 10.3 8.7 995,223 27,376 21 50,000 0 3,822 osh-native
ex.abuild-print-help 23 1 2 2.8 8.9 116,290 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
7 6 0 1.6 dash -
23 23 0 3.0 bash -
106 62 50 3.4 zsh -
17 12 4 29.4 bumpleak/osh mut
20 16 4 28.2 _bin/cxx-opt+bumproot/osh mut
23 19 4 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 25 4 25.0 osh-native mut+alloc
33 24 8 25.4 osh-native mut+alloc+free
38 38 0 17.8 osh-native mut+alloc+free+gc
36 28 8 18.0 osh-native mut+alloc+free+gc+exit
43 31 12 31.9 _bin/cxx-opt+nopool/osh mut+alloc
48 36 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.4 dash -
78 78 0 3.1 bash -
380 229 173 3.5 zsh -
51 42 8 84.9 bumpleak/osh mut
61 48 12 84.4 _bin/cxx-opt+bumproot/osh mut
71 31 39 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
100 56 44 73.4 osh-native mut+alloc
108 78 29 75.1 osh-native mut+alloc+free
181 156 24 51.6 osh-native mut+alloc+free+gc
180 160 20 50.4 osh-native mut+alloc+free+gc+exit
139 95 44 99.6 _bin/cxx-opt+nopool/osh mut+alloc
248 216 32 72.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 3 3 3.0 bash -
8 8 0 3.4 zsh -
6 3 3 11.4 bumpleak/osh mut
7 0 7 11.7 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
9 8 0 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 6 3 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 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 10 0 1.6 dash -
29 29 0 2.9 bash -
24 12 12 3.3 zsh -
20 20 0 31.9 bumpleak/osh mut
26 15 11 32.5 _bin/cxx-opt+bumproot/osh mut
29 28 0 32.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 20 16 26.2 osh-native mut+alloc
40 36 4 26.5 osh-native mut+alloc+free
29 24 4 7.9 osh-native mut+alloc+free+gc
29 24 4 7.9 osh-native mut+alloc+free+gc+exit
53 37 16 36.2 _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 65 8 3.1 bash -
170 99 71 54.6 bumpleak/osh mut
180 136 44 55.8 _bin/cxx-opt+bumproot/osh mut
195 135 60 56.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
209 140 68 47.1 osh-native mut+alloc
218 162 55 48.7 osh-native mut+alloc+free
181 104 76 8.7 osh-native mut+alloc+free+gc
181 129 52 8.7 osh-native mut+alloc+free+gc+exit
231 158 73 64.0 _bin/cxx-opt+nopool/osh mut+alloc
210 150 59 9.9 _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.5 dash -
20 19 2 4.5 bash -
18 14 5 3.5 zsh -
19 12 7 11.9 bumpleak/osh mut
19 18 1 13.9 _bin/cxx-opt+bumproot/osh mut
20 14 7 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 16 6 10.9 osh-native mut+alloc
23 17 6 11.1 osh-native mut+alloc+free
23 18 5 8.9 osh-native mut+alloc+free+gc
24 17 8 9.2 osh-native mut+alloc+free+gc+exit
25 19 6 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 18 8 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc