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,676 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 148 24 62 46.1 51.3 1,653,264 4,764 12 1,069,110 6 798,636 osh-native
parse.abuild 9 1 1 2.6 8.5 101,867 180 2 75,086 1 37,543 osh-native
ex.compute-fib 28 0 1 2.6 7.9 584,132 31,810 12 50,000 0 2,819 osh-native
ex.bashcomp-parse-help 181 0 3 10.3 8.7 979,369 27,376 21 50,000 0 3,804 osh-native
ex.abuild-print-help 22 1 2 2.8 9.0 116,240 478 3 85,322 1 42,661 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.0 bash -
105 63 50 3.4 zsh -
17 12 4 29.7 bumpleak/osh mut
19 14 5 29.2 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 18 11 25.2 osh-native mut+alloc
31 19 12 25.4 osh-native mut+alloc+free
35 27 8 17.8 osh-native mut+alloc+free+gc
37 37 0 18.0 osh-native mut+alloc+free+gc+exit
43 19 23 32.0 _bin/cxx-opt+nopool/osh mut+alloc
49 33 16 21.9 _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.4 dash -
79 79 0 3.1 bash -
374 205 189 3.4 zsh -
48 43 4 85.3 bumpleak/osh mut
60 52 8 84.7 _bin/cxx-opt+bumproot/osh mut
72 64 8 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
105 81 24 73.4 osh-native mut+alloc
106 77 28 75.2 osh-native mut+alloc+free
148 116 32 51.3 osh-native mut+alloc+free+gc
154 129 24 52.2 osh-native mut+alloc+free+gc+exit
138 106 31 97.5 _bin/cxx-opt+nopool/osh mut+alloc
217 185 32 71.1 _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 3 3 2.9 bash -
8 4 4 3.3 zsh -
6 3 3 10.7 bumpleak/osh mut
7 3 3 10.7 _bin/cxx-opt+bumproot/osh mut
7 3 3 10.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.8 osh-native mut+alloc
8 8 0 10.0 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 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 10 0 1.4 dash -
29 28 0 2.8 bash -
24 24 0 3.3 zsh -
19 15 4 31.5 bumpleak/osh mut
26 18 7 32.9 _bin/cxx-opt+bumproot/osh mut
28 21 7 31.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 25 11 26.3 osh-native mut+alloc
37 37 0 26.7 osh-native mut+alloc+free
28 20 8 7.9 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
53 37 16 36.3 _bin/cxx-opt+nopool/osh mut+alloc
37 33 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
73 69 4 3.1 bash -
167 107 60 54.1 bumpleak/osh mut
181 129 52 54.2 _bin/cxx-opt+bumproot/osh mut
192 120 72 55.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
209 92 116 46.6 osh-native mut+alloc
219 167 52 48.1 osh-native mut+alloc+free
181 116 64 8.7 osh-native mut+alloc+free+gc
180 116 64 8.8 osh-native mut+alloc+free+gc+exit
231 151 79 62.9 _bin/cxx-opt+nopool/osh mut+alloc
208 146 61 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
9 8 1 3.4 dash -
19 15 4 4.2 bash -
18 10 8 3.4 zsh -
20 10 11 12.1 bumpleak/osh mut
21 14 7 12.5 _bin/cxx-opt+bumproot/osh mut
22 14 8 13.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 15 7 11.0 osh-native mut+alloc
22 18 5 11.1 osh-native mut+alloc+free
22 12 11 9.0 osh-native mut+alloc+free+gc
23 15 9 8.7 osh-native mut+alloc+free+gc+exit
25 15 10 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 17 8 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc