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 35 3 9 12.0 17.8 476,679 1,282 6 408,748 5 204,374 osh-native
parse.configure-coreutils 148 23 61 46.1 51.5 1,653,267 4,764 12 1,069,114 6 798,638 osh-native
parse.abuild 9 1 1 2.6 8.5 101,870 180 2 75,090 1 37,545 osh-native
ex.compute-fib 28 0 1 2.6 7.9 584,135 31,810 12 50,000 0 2,822 osh-native
ex.bashcomp-parse-help 180 0 3 10.6 8.7 995,212 27,376 21 50,000 0 3,817 osh-native
ex.abuild-print-help 23 1 2 2.8 8.9 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 6 0 1.6 dash -
23 23 0 3.0 bash -
105 52 59 3.4 zsh -
17 13 4 28.5 bumpleak/osh mut
19 15 4 30.0 _bin/cxx-opt+bumproot/osh mut
23 15 7 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 25 4 25.0 osh-native mut+alloc
31 15 15 25.4 osh-native mut+alloc+free
35 31 4 17.8 osh-native mut+alloc+free+gc
37 29 7 18.0 osh-native mut+alloc+free+gc+exit
44 28 16 31.9 _bin/cxx-opt+nopool/osh mut+alloc
47 35 12 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
21 18 4 1.6 dash -
77 77 0 3.1 bash -
371 187 205 3.5 zsh -
50 50 0 83.8 bumpleak/osh mut
60 52 8 86.0 _bin/cxx-opt+bumproot/osh mut
70 61 8 86.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 64 32 73.4 osh-native mut+alloc
104 56 48 75.3 osh-native mut+alloc+free
148 136 12 51.5 osh-native mut+alloc+free+gc
152 120 32 52.1 osh-native mut+alloc+free+gc+exit
138 105 32 97.7 _bin/cxx-opt+nopool/osh mut+alloc
207 167 40 73.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 6 0 3.0 bash -
8 4 4 3.3 zsh -
6 0 6 10.5 bumpleak/osh mut
6 6 0 12.4 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.0 osh-native mut+alloc
8 4 4 10.1 osh-native mut+alloc+free
9 0 9 8.5 osh-native mut+alloc+free+gc
9 4 4 8.4 osh-native mut+alloc+free+gc+exit
12 6 6 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 8 4 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 10 0 1.4 dash -
29 25 4 3.0 bash -
24 14 9 3.3 zsh -
19 19 0 31.8 bumpleak/osh mut
25 25 0 32.2 _bin/cxx-opt+bumproot/osh mut
28 18 9 32.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 16 20 26.2 osh-native mut+alloc
38 29 8 26.7 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
27 27 0 7.7 osh-native mut+alloc+free+gc+exit
54 29 25 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 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 61 12 3.0 bash -
168 124 44 55.7 bumpleak/osh mut
178 107 71 54.8 _bin/cxx-opt+bumproot/osh mut
190 130 59 56.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
207 120 88 46.9 osh-native mut+alloc
217 153 64 49.0 osh-native mut+alloc+free
180 143 36 8.7 osh-native mut+alloc+free+gc
180 148 32 8.8 osh-native mut+alloc+free+gc+exit
231 171 60 62.6 _bin/cxx-opt+nopool/osh mut+alloc
208 180 28 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 6 4 3.4 dash -
20 18 2 4.3 bash -
18 6 12 3.5 zsh -
19 14 6 12.2 bumpleak/osh mut
20 18 2 11.6 _bin/cxx-opt+bumproot/osh mut
20 16 5 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 16 6 11.0 osh-native mut+alloc
22 14 9 10.7 osh-native mut+alloc+free
23 18 5 8.9 osh-native mut+alloc+free+gc
23 18 5 8.8 osh-native mut+alloc+free+gc+exit
24 12 13 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 23 3 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc