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 11 12.0 18.0 476,686 1,282 6 408,756 5 204,378 osh-native
parse.configure-coreutils 185 32 95 46.1 51.6 1,653,274 4,764 12 1,069,122 6 798,642 osh-native
parse.abuild 9 1 1 2.6 8.5 101,877 180 2 75,098 1 37,549 osh-native
ex.compute-fib 29 0 2 2.6 8.0 584,142 31,810 12 50,000 0 2,826 osh-native
ex.bashcomp-parse-help 183 0 4 10.6 8.8 995,219 27,376 21 50,000 0 3,821 osh-native
ex.abuild-print-help 23 1 2 2.8 9.0 116,286 478 3 85,334 1 42,667 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 20 4 3.0 bash -
104 57 52 3.4 zsh -
16 12 4 28.4 bumpleak/osh mut
19 19 0 29.1 _bin/cxx-opt+bumproot/osh mut
23 19 4 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 21 9 25.0 osh-native mut+alloc
33 28 4 25.6 osh-native mut+alloc+free
37 29 8 18.0 osh-native mut+alloc+free+gc
38 26 11 18.1 osh-native mut+alloc+free+gc+exit
44 24 20 32.9 _bin/cxx-opt+nopool/osh mut+alloc
55 51 4 22.0 _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.4 dash -
78 78 0 3.3 bash -
376 223 174 3.4 zsh -
50 38 11 83.9 bumpleak/osh mut
61 45 15 85.3 _bin/cxx-opt+bumproot/osh mut
71 50 21 84.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
101 68 32 73.4 osh-native mut+alloc
108 76 32 75.3 osh-native mut+alloc+free
185 157 28 51.6 osh-native mut+alloc+free+gc
190 174 16 52.2 osh-native mut+alloc+free+gc+exit
139 107 32 98.9 _bin/cxx-opt+nopool/osh mut+alloc
258 222 36 72.0 _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 0 2 1.4 dash -
6 0 6 3.0 bash -
8 4 4 3.3 zsh -
6 3 3 10.6 bumpleak/osh mut
7 7 0 12.0 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.0 osh-native mut+alloc
9 6 3 10.1 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
10 3 6 8.8 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 12 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.4 dash -
29 29 0 2.8 bash -
24 20 4 3.4 zsh -
20 12 8 31.9 bumpleak/osh mut
25 25 0 31.9 _bin/cxx-opt+bumproot/osh mut
28 20 8 33.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
38 27 11 26.3 osh-native mut+alloc
41 29 12 26.6 osh-native mut+alloc+free
29 24 4 8.0 osh-native mut+alloc+free+gc
29 28 0 7.9 osh-native mut+alloc+free+gc+exit
55 28 28 35.7 _bin/cxx-opt+nopool/osh mut+alloc
38 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
73 69 4 3.3 bash -
169 100 68 55.4 bumpleak/osh mut
181 124 56 55.8 _bin/cxx-opt+bumproot/osh mut
196 156 40 56.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 136 76 47.1 osh-native mut+alloc
224 164 60 48.8 osh-native mut+alloc+free
183 123 60 8.8 osh-native mut+alloc+free+gc
185 108 76 8.7 osh-native mut+alloc+free+gc+exit
233 140 92 62.5 _bin/cxx-opt+nopool/osh mut+alloc
214 166 47 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 5 5 3.4 dash -
20 12 8 4.5 bash -
18 16 3 3.5 zsh -
19 10 9 11.3 bumpleak/osh mut
20 15 5 11.8 _bin/cxx-opt+bumproot/osh mut
20 18 3 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 13 9 10.9 osh-native mut+alloc
23 15 9 11.0 osh-native mut+alloc+free
23 18 6 9.0 osh-native mut+alloc+free+gc
23 15 9 8.9 osh-native mut+alloc+free+gc+exit
25 18 8 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 14 12 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc