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 17.7 476,679 1,282 6 408,748 5 204,374 osh-native
parse.configure-coreutils 183 30 92 46.1 51.4 1,653,267 4,764 12 1,069,114 6 798,638 osh-native
parse.abuild 9 1 1 2.6 8.4 101,870 180 2 75,090 1 37,545 osh-native
ex.compute-fib 28 0 2 2.6 7.9 584,135 31,810 12 50,000 0 2,822 osh-native
ex.bashcomp-parse-help 183 0 4 10.6 8.5 995,212 27,376 21 50,000 0 3,817 osh-native
ex.abuild-print-help 23 1 2 2.8 8.7 116,279 478 3 85,326 1 42,663 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 3 3 1.4 dash -
23 23 0 3.1 bash -
104 66 45 3.4 zsh -
17 7 10 29.5 bumpleak/osh mut
20 16 4 29.9 _bin/cxx-opt+bumproot/osh mut
23 19 4 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 8 21 25.2 osh-native mut+alloc
32 20 12 25.6 osh-native mut+alloc+free
37 33 4 17.7 osh-native mut+alloc+free+gc
38 30 8 18.1 osh-native mut+alloc+free+gc+exit
45 28 16 32.8 _bin/cxx-opt+nopool/osh mut+alloc
51 35 16 22.3 _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.1 bash -
376 215 185 3.4 zsh -
50 41 8 84.0 bumpleak/osh mut
61 57 4 85.3 _bin/cxx-opt+bumproot/osh mut
69 57 12 86.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 78 19 73.2 osh-native mut+alloc
107 83 24 75.3 osh-native mut+alloc+free
183 167 16 51.4 osh-native mut+alloc+free+gc
174 135 40 52.1 osh-native mut+alloc+free+gc+exit
141 89 52 98.3 _bin/cxx-opt+nopool/osh mut+alloc
238 214 24 71.9 _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 8 0 3.4 zsh -
7 0 6 11.3 bumpleak/osh mut
7 3 3 10.6 _bin/cxx-opt+bumproot/osh mut
8 8 0 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.0 osh-native mut+alloc
9 9 0 10.2 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
10 6 3 8.4 osh-native mut+alloc+free+gc+exit
12 4 8 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.6 _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
11 11 0 1.6 dash -
30 29 0 2.9 bash -
24 20 4 3.3 zsh -
19 19 0 31.0 bumpleak/osh mut
26 22 4 32.3 _bin/cxx-opt+bumproot/osh mut
28 28 0 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 29 8 26.2 osh-native mut+alloc
39 23 16 26.5 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
54 33 21 36.5 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.3 _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.1 bash -
168 98 70 54.1 bumpleak/osh mut
180 132 48 55.8 _bin/cxx-opt+bumproot/osh mut
192 136 56 55.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 140 72 47.1 osh-native mut+alloc
218 165 52 48.8 osh-native mut+alloc+free
183 103 79 8.5 osh-native mut+alloc+free+gc
185 124 60 8.7 osh-native mut+alloc+free+gc+exit
233 154 79 63.4 _bin/cxx-opt+nopool/osh mut+alloc
210 137 73 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 7 3 3.4 dash -
20 19 2 4.3 bash -
18 7 12 3.5 zsh -
20 13 8 11.9 bumpleak/osh mut
20 16 4 13.8 _bin/cxx-opt+bumproot/osh mut
20 15 6 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 11 12 11.0 osh-native mut+alloc
23 9 15 10.7 osh-native mut+alloc+free
23 14 10 8.7 osh-native mut+alloc+free+gc
23 15 9 8.9 osh-native mut+alloc+free+gc+exit
25 24 2 12.5 _bin/cxx-opt+nopool/osh mut+alloc
27 20 7 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc