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 38 5 11 12.0 18.0 476,686 1,282 6 408,756 5 204,378 osh-native
parse.configure-coreutils 166 26 78 46.1 51.6 1,653,274 4,764 12 1,069,122 6 798,642 osh-native
parse.abuild 10 1 2 2.6 8.5 101,877 180 2 75,098 1 37,549 osh-native
ex.compute-fib 31 0 2 2.6 7.7 584,142 31,810 12 50,000 0 2,826 osh-native
ex.bashcomp-parse-help 184 0 4 10.6 8.7 995,219 27,376 21 50,000 0 3,821 osh-native
ex.abuild-print-help 26 1 2 2.8 8.9 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
7 7 0 1.6 dash -
23 23 0 3.1 bash -
108 44 71 3.5 zsh -
16 12 4 28.0 bumpleak/osh mut
20 15 5 30.3 _bin/cxx-opt+bumproot/osh mut
24 20 4 30.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 21 9 25.0 osh-native mut+alloc
32 20 12 25.4 osh-native mut+alloc+free
38 38 0 18.0 osh-native mut+alloc+free+gc
37 37 0 18.0 osh-native mut+alloc+free+gc+exit
44 36 8 32.0 _bin/cxx-opt+nopool/osh mut+alloc
55 39 16 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
22 22 0 1.4 dash -
78 78 0 3.3 bash -
390 225 190 3.5 zsh -
49 45 4 84.1 bumpleak/osh mut
59 55 4 86.0 _bin/cxx-opt+bumproot/osh mut
70 57 12 86.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
101 56 44 73.3 osh-native mut+alloc
107 67 39 75.4 osh-native mut+alloc+free
166 146 20 51.6 osh-native mut+alloc+free+gc
172 160 12 52.3 osh-native mut+alloc+free+gc+exit
140 108 32 98.3 _bin/cxx-opt+nopool/osh mut+alloc
248 207 40 72.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.4 dash -
6 6 0 3.0 bash -
8 1 8 3.3 zsh -
6 6 0 10.4 bumpleak/osh mut
7 7 0 10.6 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.1 osh-native mut+alloc
10 5 5 10.0 osh-native mut+alloc+free
10 5 5 8.5 osh-native mut+alloc+free+gc
10 7 3 8.5 osh-native mut+alloc+free+gc+exit
14 14 0 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 4 8 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 7 3 1.4 dash -
29 25 4 3.0 bash -
24 16 8 3.3 zsh -
19 19 0 31.0 bumpleak/osh mut
26 22 4 32.1 _bin/cxx-opt+bumproot/osh mut
29 24 4 31.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 29 8 26.3 osh-native mut+alloc
39 27 12 26.6 osh-native mut+alloc+free
31 26 4 7.7 osh-native mut+alloc+free+gc
29 24 4 8.0 osh-native mut+alloc+free+gc+exit
55 38 17 35.9 _bin/cxx-opt+nopool/osh mut+alloc
40 36 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
85 77 8 3.1 bash -
169 78 90 55.5 bumpleak/osh mut
182 139 44 55.8 _bin/cxx-opt+bumproot/osh mut
196 136 60 56.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 116 96 47.1 osh-native mut+alloc
231 140 92 48.9 osh-native mut+alloc+free
184 128 56 8.7 osh-native mut+alloc+free+gc
186 133 53 8.7 osh-native mut+alloc+free+gc+exit
238 157 81 64.1 _bin/cxx-opt+nopool/osh mut+alloc
223 163 60 10.0 _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 9 2 3.5 dash -
22 16 6 4.3 bash -
18 9 10 3.4 zsh -
22 14 8 13.3 bumpleak/osh mut
24 16 9 13.1 _bin/cxx-opt+bumproot/osh mut
24 16 9 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
24 14 11 11.0 osh-native mut+alloc
25 12 14 10.9 osh-native mut+alloc+free
26 25 2 8.9 osh-native mut+alloc+free+gc
24 20 4 8.9 osh-native mut+alloc+free+gc+exit
29 12 17 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 19 8 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc