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 3 10 12.0 17.7 476,680 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 147 23 60 46.1 51.4 1,653,268 4,764 12 1,069,110 6 798,636 osh-native
parse.abuild 9 1 1 2.6 8.4 101,871 180 2 75,086 1 37,543 osh-native
ex.compute-fib 28 0 1 2.6 7.9 584,136 31,810 12 50,000 0 2,820 osh-native
ex.bashcomp-parse-help 181 0 3 10.6 8.5 995,213 27,376 21 50,000 0 3,815 osh-native
ex.abuild-print-help 22 1 2 2.8 8.9 116,280 478 3 85,322 1 42,661 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 56 55 3.4 zsh -
16 16 0 28.6 bumpleak/osh mut
19 12 8 29.9 _bin/cxx-opt+bumproot/osh mut
22 22 0 28.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.0 osh-native mut+alloc
32 8 24 25.4 osh-native mut+alloc+free
36 36 0 17.7 osh-native mut+alloc+free+gc
37 37 0 17.8 osh-native mut+alloc+free+gc+exit
44 36 8 31.9 _bin/cxx-opt+nopool/osh mut+alloc
49 36 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 202 198 3.4 zsh -
49 41 8 85.3 bumpleak/osh mut
61 41 19 86.2 _bin/cxx-opt+bumproot/osh mut
70 54 15 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 67 31 73.4 osh-native mut+alloc
106 69 37 75.2 osh-native mut+alloc+free
147 127 20 51.4 osh-native mut+alloc+free+gc
151 127 24 52.1 osh-native mut+alloc+free+gc+exit
142 94 47 97.4 _bin/cxx-opt+nopool/osh mut+alloc
231 187 45 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 6 0 3.0 bash -
8 0 7 3.3 zsh -
6 0 6 11.3 bumpleak/osh mut
6 6 0 12.1 _bin/cxx-opt+bumproot/osh mut
7 2 2 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.7 osh-native mut+alloc
8 4 4 10.0 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 4 4 8.7 osh-native mut+alloc+free+gc+exit
12 12 0 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 4 8 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
10 7 3 1.6 dash -
30 29 0 3.0 bash -
24 20 4 3.1 zsh -
19 19 0 31.5 bumpleak/osh mut
25 25 0 33.3 _bin/cxx-opt+bumproot/osh mut
28 23 4 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 36 0 26.3 osh-native mut+alloc
38 19 19 26.7 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
28 21 7 8.0 osh-native mut+alloc+free+gc+exit
54 33 21 36.0 _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
72 64 8 3.1 bash -
167 102 65 54.0 bumpleak/osh mut
178 123 55 55.6 _bin/cxx-opt+bumproot/osh mut
191 131 60 55.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 139 71 47.0 osh-native mut+alloc
214 137 77 48.9 osh-native mut+alloc+free
181 100 80 8.5 osh-native mut+alloc+free+gc
181 132 48 8.5 osh-native mut+alloc+free+gc+exit
231 159 72 63.8 _bin/cxx-opt+nopool/osh mut+alloc
206 123 83 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 7 3 3.5 dash -
20 13 7 4.5 bash -
17 11 6 3.5 zsh -
19 13 7 12.4 bumpleak/osh mut
19 14 6 13.4 _bin/cxx-opt+bumproot/osh mut
22 16 7 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 12 10 10.9 osh-native mut+alloc
23 21 2 10.9 osh-native mut+alloc+free
22 11 11 8.9 osh-native mut+alloc+free+gc
22 20 3 8.7 osh-native mut+alloc+free+gc+exit
25 16 10 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 25 1 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc