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 32 3 9 12.0 17.7 476,689 1,282 6 408,626 5 204,313 osh-native
parse.configure-coreutils 144 20 67 41.0 45.5 1,653,277 4,764 12 1,591,678 7 795,839 osh-native
parse.abuild 9 1 2 2.4 8.0 101,880 180 3 87,194 1 43,597 osh-native
ex.compute-fib 22 0 1 2.6 7.6 584,145 31,810 12 50,000 0 2,764 osh-native
ex.bashcomp-parse-help 176 0 3 10.6 8.0 995,222 27,376 21 50,000 0 3,751 osh-native
ex.abuild-print-help 21 1 2 2.8 8.3 116,289 478 3 85,210 1 42,605 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 23 0 3.1 bash -
104 44 66 3.4 zsh -
17 16 0 29.4 bumpleak/osh mut
17 17 0 28.5 _bin/cxx-opt+bumproot/osh mut
20 16 4 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
27 23 4 24.8 osh-native mut+alloc
29 24 4 25.3 osh-native mut+alloc+free
32 24 8 17.7 osh-native mut+alloc+free+gc
33 22 11 17.6 osh-native mut+alloc+free+gc+exit
40 24 16 32.2 _bin/cxx-opt+nopool/osh mut+alloc
44 40 4 21.8 _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 21 0 1.6 dash -
77 77 0 3.3 bash -
377 237 160 3.5 zsh -
49 37 11 84.2 bumpleak/osh mut
52 43 8 84.0 _bin/cxx-opt+bumproot/osh mut
62 45 16 85.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
88 46 42 73.0 osh-native mut+alloc
97 73 24 74.8 osh-native mut+alloc+free
144 127 16 45.5 osh-native mut+alloc+free+gc
145 133 12 45.6 osh-native mut+alloc+free+gc+exit
128 92 36 97.6 _bin/cxx-opt+nopool/osh mut+alloc
209 176 32 60.3 _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 2.9 bash -
8 4 4 3.3 zsh -
6 3 3 10.8 bumpleak/osh mut
6 3 3 11.0 _bin/cxx-opt+bumproot/osh mut
7 0 7 11.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.6 osh-native mut+alloc
8 4 4 9.7 osh-native mut+alloc+free
9 4 4 8.0 osh-native mut+alloc+free+gc
9 6 3 8.0 osh-native mut+alloc+free+gc+exit
11 11 0 10.9 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 8.8 _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 28 0 2.9 bash -
24 16 8 3.1 zsh -
19 14 5 32.0 bumpleak/osh mut
20 16 4 31.9 _bin/cxx-opt+bumproot/osh mut
23 22 0 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 23 8 26.0 osh-native mut+alloc
32 12 20 26.2 osh-native mut+alloc+free
22 22 0 7.6 osh-native mut+alloc+free+gc
22 18 4 7.5 osh-native mut+alloc+free+gc+exit
47 27 20 35.7 _bin/cxx-opt+nopool/osh mut+alloc
31 23 8 9.1 _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 73 0 3.1 bash -
167 118 49 54.6 bumpleak/osh mut
172 100 72 54.9 _bin/cxx-opt+bumproot/osh mut
187 131 56 55.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
203 123 80 46.7 osh-native mut+alloc
212 142 69 48.7 osh-native mut+alloc+free
176 132 44 8.0 osh-native mut+alloc+free+gc
175 123 52 8.1 osh-native mut+alloc+free+gc+exit
222 151 71 62.7 _bin/cxx-opt+nopool/osh mut+alloc
200 156 44 9.8 _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 13 7 4.5 bash -
18 10 9 3.4 zsh -
20 19 2 12.1 bumpleak/osh mut
18 16 3 11.4 _bin/cxx-opt+bumproot/osh mut
20 17 3 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 11 10 10.6 osh-native mut+alloc
21 16 6 10.7 osh-native mut+alloc+free
21 15 6 8.3 osh-native mut+alloc+free+gc
22 13 9 8.1 osh-native mut+alloc+free+gc+exit
24 15 9 12.2 _bin/cxx-opt+nopool/osh mut+alloc
24 14 10 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc