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 4 11 12.0 17.8 476,676 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 182 33 92 46.1 51.4 1,653,264 4,764 12 1,069,110 6 798,636 osh-native
parse.abuild 10 1 2 2.6 8.5 101,867 180 2 75,086 1 37,543 osh-native
ex.compute-fib 29 0 2 2.6 7.7 584,132 31,810 12 50,000 0 2,819 osh-native
ex.bashcomp-parse-help 183 0 5 10.3 8.8 979,369 27,376 21 50,000 0 3,804 osh-native
ex.abuild-print-help 23 1 2 2.8 8.9 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
7 7 0 1.6 dash -
24 20 4 3.1 bash -
112 77 42 3.4 zsh -
17 13 4 28.5 bumpleak/osh mut
20 20 0 28.6 _bin/cxx-opt+bumproot/osh mut
26 26 0 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 22 9 25.0 osh-native mut+alloc
32 20 12 25.4 osh-native mut+alloc+free
38 38 0 17.8 osh-native mut+alloc+free+gc
39 35 4 17.8 osh-native mut+alloc+free+gc+exit
44 28 16 32.0 _bin/cxx-opt+nopool/osh mut+alloc
53 34 19 22.0 _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
23 15 8 1.4 dash -
79 79 0 3.1 bash -
391 232 179 3.5 zsh -
49 30 19 83.8 bumpleak/osh mut
61 41 19 85.3 _bin/cxx-opt+bumproot/osh mut
72 48 24 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 62 37 73.3 osh-native mut+alloc
109 76 32 75.2 osh-native mut+alloc+free
182 166 16 51.4 osh-native mut+alloc+free+gc
185 156 28 52.2 osh-native mut+alloc+free+gc+exit
142 87 55 97.7 _bin/cxx-opt+nopool/osh mut+alloc
232 196 36 74.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 0 8 3.3 zsh -
6 6 0 12.0 bumpleak/osh mut
7 7 0 11.6 _bin/cxx-opt+bumproot/osh mut
8 4 4 11.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.0 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
10 10 0 8.5 osh-native mut+alloc+free+gc
10 3 7 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.1 _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 5 5 1.6 dash -
29 29 0 2.9 bash -
24 20 4 3.4 zsh -
20 20 0 31.8 bumpleak/osh mut
27 23 4 32.8 _bin/cxx-opt+bumproot/osh mut
29 21 8 31.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 29 8 26.5 osh-native mut+alloc
39 23 16 26.7 osh-native mut+alloc+free
29 29 0 7.7 osh-native mut+alloc+free+gc
40 40 0 7.9 osh-native mut+alloc+free+gc+exit
55 47 8 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 30 7 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
74 66 8 3.0 bash -
174 125 48 53.1 bumpleak/osh mut
183 103 79 54.4 _bin/cxx-opt+bumproot/osh mut
199 115 84 54.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 125 89 46.3 osh-native mut+alloc
222 129 93 48.0 osh-native mut+alloc+free
183 127 56 8.8 osh-native mut+alloc+free+gc
185 108 76 8.7 osh-native mut+alloc+free+gc+exit
241 162 79 61.8 _bin/cxx-opt+nopool/osh mut+alloc
222 190 32 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
11 5 6 3.5 dash -
22 12 10 4.3 bash -
19 12 7 3.5 zsh -
22 15 7 12.5 bumpleak/osh mut
21 13 9 13.4 _bin/cxx-opt+bumproot/osh mut
23 13 11 13.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
23 14 10 10.7 osh-native mut+alloc
25 17 8 10.9 osh-native mut+alloc+free
23 16 8 8.9 osh-native mut+alloc+free+gc
25 23 2 8.7 osh-native mut+alloc+free+gc+exit
26 20 7 12.5 _bin/cxx-opt+nopool/osh mut+alloc
27 20 8 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc