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.7 476,676 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 171 29 82 46.1 51.3 1,653,264 4,764 12 1,069,110 6 798,636 osh-native
parse.abuild 9 1 1 2.6 8.5 101,867 180 2 75,086 1 37,543 osh-native
ex.compute-fib 28 0 2 2.6 7.9 584,132 31,810 12 50,000 0 2,819 osh-native
ex.bashcomp-parse-help 181 0 4 10.3 8.8 979,369 27,376 21 50,000 0 3,804 osh-native
ex.abuild-print-help 23 1 2 2.8 8.9 116,240 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.4 dash -
24 23 0 3.1 bash -
106 70 41 3.4 zsh -
16 8 8 28.5 bumpleak/osh mut
21 20 0 28.4 _bin/cxx-opt+bumproot/osh mut
23 8 16 29.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 13 17 25.0 osh-native mut+alloc
32 24 8 25.6 osh-native mut+alloc+free
37 33 4 17.7 osh-native mut+alloc+free+gc
39 35 4 17.8 osh-native mut+alloc+free+gc+exit
43 30 13 32.1 _bin/cxx-opt+nopool/osh mut+alloc
56 44 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 18 4 1.6 dash -
80 79 0 3.1 bash -
381 228 175 3.5 zsh -
49 46 4 84.7 bumpleak/osh mut
61 53 8 86.2 _bin/cxx-opt+bumproot/osh mut
71 67 4 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 45 53 73.5 osh-native mut+alloc
107 79 28 75.3 osh-native mut+alloc+free
171 154 16 51.3 osh-native mut+alloc+free+gc
183 139 44 52.2 osh-native mut+alloc+free+gc+exit
138 79 59 98.8 _bin/cxx-opt+nopool/osh mut+alloc
234 205 28 72.8 _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 6 0 3.0 bash -
8 8 0 3.3 zsh -
6 0 6 12.1 bumpleak/osh mut
7 7 0 11.8 _bin/cxx-opt+bumproot/osh mut
8 8 0 12.1 _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
9 9 0 8.5 osh-native mut+alloc+free+gc
9 5 5 8.4 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 4 8 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.4 dash -
29 29 0 2.9 bash -
24 20 4 3.3 zsh -
20 15 4 31.8 bumpleak/osh mut
26 22 4 32.3 _bin/cxx-opt+bumproot/osh mut
29 20 8 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 36 0 26.1 osh-native mut+alloc
40 28 12 26.6 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
55 31 24 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.5 _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
76 76 0 3.0 bash -
169 112 56 53.8 bumpleak/osh mut
179 127 52 54.6 _bin/cxx-opt+bumproot/osh mut
193 105 88 56.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 146 65 46.3 osh-native mut+alloc
219 147 71 48.0 osh-native mut+alloc+free
181 116 64 8.8 osh-native mut+alloc+free+gc
182 133 48 8.5 osh-native mut+alloc+free+gc+exit
230 147 83 62.7 _bin/cxx-opt+nopool/osh mut+alloc
209 157 52 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 4 6 3.5 dash -
20 20 1 4.3 bash -
18 11 8 3.5 zsh -
19 11 8 12.7 bumpleak/osh mut
20 12 8 11.8 _bin/cxx-opt+bumproot/osh mut
23 18 6 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 15 7 10.7 osh-native mut+alloc
23 12 11 10.9 osh-native mut+alloc+free
23 19 4 8.9 osh-native mut+alloc+free+gc
24 12 13 8.7 osh-native mut+alloc+free+gc+exit
26 25 2 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 19 8 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc