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.7 476,676 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 176 26 81 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.3 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 183 0 4 12.3 8.7 1,002,889 27,376 21 50,000 0 3,803 osh-native
ex.abuild-print-help 23 1 2 2.8 8.7 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 -
106 67 46 3.4 zsh -
17 13 4 29.6 bumpleak/osh mut
20 20 0 30.0 _bin/cxx-opt+bumproot/osh mut
23 15 8 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 15 15 25.2 osh-native mut+alloc
33 25 8 25.4 osh-native mut+alloc+free
38 33 4 17.7 osh-native mut+alloc+free+gc
39 35 4 18.0 osh-native mut+alloc+free+gc+exit
45 28 16 33.1 _bin/cxx-opt+nopool/osh mut+alloc
57 53 4 21.8 _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 -
77 73 4 3.3 bash -
381 234 171 3.5 zsh -
49 41 8 84.6 bumpleak/osh mut
61 50 11 85.0 _bin/cxx-opt+bumproot/osh mut
70 54 16 84.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 75 24 73.4 osh-native mut+alloc
107 75 32 75.3 osh-native mut+alloc+free
176 139 36 51.4 osh-native mut+alloc+free+gc
185 152 32 52.2 osh-native mut+alloc+free+gc+exit
141 85 56 98.3 _bin/cxx-opt+nopool/osh mut+alloc
239 211 28 74.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.3 dash -
6 6 0 3.0 bash -
8 8 0 3.3 zsh -
6 3 3 11.9 bumpleak/osh mut
7 7 0 12.4 _bin/cxx-opt+bumproot/osh mut
7 7 0 10.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 9.8 osh-native mut+alloc
9 6 3 10.0 osh-native mut+alloc+free
9 9 0 8.3 osh-native mut+alloc+free+gc
10 5 5 8.4 osh-native mut+alloc+free+gc+exit
13 12 0 11.1 _bin/cxx-opt+nopool/osh mut+alloc
13 13 0 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.6 dash -
29 25 4 3.0 bash -
24 12 12 3.3 zsh -
20 16 4 31.7 bumpleak/osh mut
26 18 7 32.1 _bin/cxx-opt+bumproot/osh mut
30 17 13 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 24 12 26.3 osh-native mut+alloc
39 27 12 26.5 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
29 25 4 7.9 osh-native mut+alloc+free+gc+exit
54 27 27 35.8 _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 65 8 3.0 bash -
169 102 67 56.8 bumpleak/osh mut
182 113 68 56.7 _bin/cxx-opt+bumproot/osh mut
197 148 48 58.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 156 56 48.9 osh-native mut+alloc
222 151 71 50.7 osh-native mut+alloc+free
183 107 75 8.7 osh-native mut+alloc+free+gc
183 109 73 8.8 osh-native mut+alloc+free+gc+exit
238 153 85 64.5 _bin/cxx-opt+nopool/osh mut+alloc
218 158 59 10.1 _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 7 3 3.4 dash -
20 13 7 4.3 bash -
18 12 6 3.4 zsh -
21 18 3 12.7 bumpleak/osh mut
22 11 11 12.8 _bin/cxx-opt+bumproot/osh mut
21 11 11 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 12 11 10.9 osh-native mut+alloc
23 18 5 11.0 osh-native mut+alloc+free
23 22 2 8.7 osh-native mut+alloc+free+gc
24 19 6 8.8 osh-native mut+alloc+free+gc+exit
25 18 7 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 23 3 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc