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 36 3 10 12.0 18.1 476,676 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 151 24 64 46.1 51.4 1,653,264 4,764 12 1,069,110 6 798,636 osh-native
parse.abuild 9 1 1 2.6 8.4 101,867 180 2 75,086 1 37,543 osh-native
ex.compute-fib 28 0 2 2.6 8.0 584,128 31,810 12 50,000 0 2,818 osh-native
ex.bashcomp-parse-help 184 0 4 12.3 8.7 1,002,882 27,376 21 50,000 0 3,802 osh-native
ex.abuild-print-help 22 1 2 2.8 8.9 116,069 478 3 85,320 1 42,660 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 -
24 23 0 3.0 bash -
105 67 44 3.3 zsh -
17 12 4 28.0 bumpleak/osh mut
19 19 0 29.2 _bin/cxx-opt+bumproot/osh mut
22 18 4 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 13 17 24.9 osh-native mut+alloc
31 19 12 25.6 osh-native mut+alloc+free
36 32 4 18.1 osh-native mut+alloc+free+gc
37 26 11 17.8 osh-native mut+alloc+free+gc+exit
43 23 19 31.9 _bin/cxx-opt+nopool/osh mut+alloc
49 40 8 22.1 _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 -
79 79 0 3.3 bash -
379 194 206 3.4 zsh -
49 32 16 83.9 bumpleak/osh mut
61 56 4 85.7 _bin/cxx-opt+bumproot/osh mut
71 66 4 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 76 20 73.4 osh-native mut+alloc
105 77 28 75.1 osh-native mut+alloc+free
151 135 16 51.4 osh-native mut+alloc+free+gc
159 135 24 52.2 osh-native mut+alloc+free+gc+exit
138 97 40 97.6 _bin/cxx-opt+nopool/osh mut+alloc
207 171 36 72.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 2 0 1.4 dash -
6 6 0 3.0 bash -
8 4 4 3.3 zsh -
6 3 3 11.9 bumpleak/osh mut
7 7 0 11.6 _bin/cxx-opt+bumproot/osh mut
7 7 0 10.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 9.8 osh-native mut+alloc
9 4 4 10.0 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 9 0 8.4 osh-native mut+alloc+free+gc+exit
12 4 8 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 7 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
11 7 3 1.4 dash -
29 28 0 3.0 bash -
24 16 8 3.4 zsh -
19 15 4 31.9 bumpleak/osh mut
25 18 7 31.7 _bin/cxx-opt+bumproot/osh mut
28 24 4 31.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 25 12 26.3 osh-native mut+alloc
38 25 13 26.7 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
54 45 8 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 36 0 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
73 65 8 3.1 bash -
166 133 32 56.6 bumpleak/osh mut
179 115 63 57.1 _bin/cxx-opt+bumproot/osh mut
195 150 45 58.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 127 83 48.7 osh-native mut+alloc
221 152 68 50.9 osh-native mut+alloc+free
184 120 64 8.7 osh-native mut+alloc+free+gc
182 101 81 8.7 osh-native mut+alloc+free+gc+exit
234 151 83 65.5 _bin/cxx-opt+nopool/osh mut+alloc
208 164 44 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
9 5 4 3.4 dash -
20 15 5 4.5 bash -
18 11 8 3.5 zsh -
18 6 12 12.7 bumpleak/osh mut
20 11 9 13.8 _bin/cxx-opt+bumproot/osh mut
20 16 4 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 19 3 11.0 osh-native mut+alloc
22 16 7 10.7 osh-native mut+alloc+free
22 22 0 8.9 osh-native mut+alloc+free+gc
23 11 12 8.8 osh-native mut+alloc+free+gc+exit
25 20 6 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 20 6 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc