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 5 11 12.0 17.8 476,676 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 178 29 89 46.1 51.4 1,653,264 4,764 12 1,069,110 6 798,636 osh-native
parse.abuild 10 1 2 2.6 8.5 101,867 180 2 75,086 1 37,543 osh-native
ex.compute-fib 28 0 1 2.6 7.9 584,132 31,810 12 50,000 0 2,819 osh-native
ex.bashcomp-parse-help 183 0 4 10.6 8.4 995,209 27,376 21 50,000 0 3,815 osh-native
ex.abuild-print-help 23 1 2 2.8 8.9 116,276 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 3.0 bash -
106 62 50 3.4 zsh -
16 16 0 28.9 bumpleak/osh mut
19 14 5 29.1 _bin/cxx-opt+bumproot/osh mut
23 11 11 29.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 11 18 25.2 osh-native mut+alloc
32 16 16 25.6 osh-native mut+alloc+free
37 26 11 17.8 osh-native mut+alloc+free+gc
37 36 0 18.0 osh-native mut+alloc+free+gc+exit
44 20 24 31.8 _bin/cxx-opt+nopool/osh mut+alloc
53 45 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 -
78 74 4 3.3 bash -
386 227 182 3.4 zsh -
52 40 12 84.8 bumpleak/osh mut
60 52 8 86.0 _bin/cxx-opt+bumproot/osh mut
71 50 21 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 73 24 73.4 osh-native mut+alloc
106 70 35 75.1 osh-native mut+alloc+free
178 157 20 51.4 osh-native mut+alloc+free+gc
176 140 36 52.3 osh-native mut+alloc+free+gc+exit
142 115 28 98.8 _bin/cxx-opt+nopool/osh mut+alloc
257 213 44 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 3.0 bash -
8 4 4 3.3 zsh -
6 6 0 11.7 bumpleak/osh mut
7 7 0 11.3 _bin/cxx-opt+bumproot/osh mut
8 8 0 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 9.8 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
10 10 0 8.5 osh-native mut+alloc+free+gc
9 9 0 8.3 osh-native mut+alloc+free+gc+exit
12 4 8 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 8 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 3.0 bash -
24 16 8 3.3 zsh -
19 11 7 31.5 bumpleak/osh mut
25 18 7 32.0 _bin/cxx-opt+bumproot/osh mut
29 22 7 31.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.3 osh-native mut+alloc
38 27 11 26.6 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
54 35 19 36.3 _bin/cxx-opt+nopool/osh mut+alloc
37 28 8 9.2 _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 69 4 2.9 bash -
168 92 76 54.6 bumpleak/osh mut
179 95 83 56.2 _bin/cxx-opt+bumproot/osh mut
195 138 57 56.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 137 77 47.1 osh-native mut+alloc
222 158 63 48.8 osh-native mut+alloc+free
183 102 82 8.4 osh-native mut+alloc+free+gc
183 131 51 8.7 osh-native mut+alloc+free+gc+exit
234 166 67 62.9 _bin/cxx-opt+nopool/osh mut+alloc
210 166 44 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 8 2 3.5 dash -
20 12 9 4.3 bash -
18 13 5 3.5 zsh -
20 13 8 12.4 bumpleak/osh mut
21 14 7 12.6 _bin/cxx-opt+bumproot/osh mut
25 19 6 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 16 5 11.0 osh-native mut+alloc
23 21 2 11.1 osh-native mut+alloc+free
23 14 10 8.9 osh-native mut+alloc+free+gc
23 20 4 8.9 osh-native mut+alloc+free+gc+exit
26 11 15 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 18 9 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc