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 18.0 476,711 1,282 6 408,792 5 204,396 osh-native
parse.configure-coreutils 143 22 57 44.6 50.0 1,653,299 4,764 12 1,030,676 6 769,422 osh-native
parse.abuild 9 1 1 2.6 8.5 101,902 180 2 75,134 1 37,567 osh-native
ex.compute-fib 53 1 17 7.2 10.7 868,977 22,608 29 114,940 2 61,593 osh-native
ex.bashcomp-parse-help 180 0 3 10.3 8.8 995,756 12,911 21 50,000 0 3,913 osh-native
ex.abuild-print-help 22 1 2 2.8 8.9 116,311 270 3 85,370 1 42,685 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 -
23 19 4 3.0 bash -
105 63 48 3.4 zsh -
16 12 4 29.0 bumpleak/osh mut
19 16 4 28.6 _bin/cxx-opt+bumproot/osh mut
22 22 0 28.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 25 4 25.2 osh-native mut+alloc
33 29 4 25.7 osh-native mut+alloc+free
35 27 8 18.0 osh-native mut+alloc+free+gc
37 28 8 18.0 osh-native mut+alloc+free+gc+exit
43 19 23 33.5 _bin/cxx-opt+nopool/osh mut+alloc
49 37 11 22.2 _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.0 bash -
374 208 187 3.4 zsh -
48 40 8 87.1 bumpleak/osh mut
59 55 4 85.6 _bin/cxx-opt+bumproot/osh mut
71 39 31 85.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
104 84 20 73.6 osh-native mut+alloc
107 86 20 75.2 osh-native mut+alloc+free
143 115 28 50.0 osh-native mut+alloc+free+gc
148 108 40 50.4 osh-native mut+alloc+free+gc+exit
138 91 47 98.9 _bin/cxx-opt+nopool/osh mut+alloc
202 178 24 67.6 _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 0 6 12.2 bumpleak/osh mut
6 6 0 12.5 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.1 osh-native mut+alloc
8 4 4 10.2 osh-native mut+alloc+free
9 0 9 8.5 osh-native mut+alloc+free+gc
9 0 9 8.7 osh-native mut+alloc+free+gc+exit
11 4 8 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 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 -
28 28 0 2.9 bash -
24 12 12 3.4 zsh -
26 18 7 47.3 bumpleak/osh mut
33 22 11 47.8 _bin/cxx-opt+bumproot/osh mut
39 27 12 48.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
51 28 24 40.4 osh-native mut+alloc
55 42 13 40.9 osh-native mut+alloc+free
53 53 0 10.7 osh-native mut+alloc+free+gc
53 49 4 10.9 osh-native mut+alloc+free+gc+exit
76 48 28 55.7 _bin/cxx-opt+nopool/osh mut+alloc
69 57 12 12.9 _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 -
166 107 59 54.3 bumpleak/osh mut
179 119 60 56.5 _bin/cxx-opt+bumproot/osh mut
192 136 56 56.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
208 144 64 46.9 osh-native mut+alloc
216 156 60 48.7 osh-native mut+alloc+free
180 128 52 8.8 osh-native mut+alloc+free+gc
179 122 57 8.8 osh-native mut+alloc+free+gc+exit
230 137 93 64.1 _bin/cxx-opt+nopool/osh mut+alloc
207 155 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 5 6 3.5 dash -
20 11 9 4.3 bash -
19 10 10 3.5 zsh -
19 12 8 12.4 bumpleak/osh mut
20 17 4 12.8 _bin/cxx-opt+bumproot/osh mut
20 15 6 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 20 2 11.0 osh-native mut+alloc
22 14 8 10.9 osh-native mut+alloc+free
22 18 4 8.9 osh-native mut+alloc+free+gc
22 16 7 9.2 osh-native mut+alloc+free+gc+exit
24 15 10 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 18 8 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc