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 4 10 12.0 17.8 476,676 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 162 27 74 46.1 51.1 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 29 0 2 2.6 7.9 584,128 31,810 12 50,000 0 2,818 osh-native
ex.bashcomp-parse-help 181 0 4 12.3 8.7 1,002,882 27,376 21 50,000 0 3,802 osh-native
ex.abuild-print-help 23 1 2 2.8 8.8 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
6 6 0 1.4 dash -
23 23 0 3.0 bash -
104 59 52 3.4 zsh -
16 12 4 28.4 bumpleak/osh mut
20 16 4 30.0 _bin/cxx-opt+bumproot/osh mut
22 22 0 30.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.0 osh-native mut+alloc
32 12 20 25.4 osh-native mut+alloc+free
36 28 8 17.8 osh-native mut+alloc+free+gc
37 33 4 18.1 osh-native mut+alloc+free+gc+exit
47 27 19 32.2 _bin/cxx-opt+nopool/osh mut+alloc
50 34 15 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.6 dash -
77 73 4 3.3 bash -
381 209 194 3.5 zsh -
49 41 8 85.6 bumpleak/osh mut
61 52 8 84.7 _bin/cxx-opt+bumproot/osh mut
71 63 8 86.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 58 39 73.5 osh-native mut+alloc
106 67 39 75.3 osh-native mut+alloc+free
162 142 20 51.1 osh-native mut+alloc+free+gc
168 143 24 52.2 osh-native mut+alloc+free+gc+exit
142 109 32 99.4 _bin/cxx-opt+nopool/osh mut+alloc
231 195 36 73.9 _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 8 0 3.3 zsh -
6 6 0 11.4 bumpleak/osh mut
7 0 7 12.4 _bin/cxx-opt+bumproot/osh mut
8 0 8 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 6 10.0 osh-native mut+alloc
9 9 0 9.8 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
10 6 3 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.2 _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 29 0 2.9 bash -
24 16 8 3.4 zsh -
19 15 4 31.8 bumpleak/osh mut
25 21 4 33.4 _bin/cxx-opt+bumproot/osh mut
29 20 8 32.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 22 15 26.5 osh-native mut+alloc
39 27 12 26.6 osh-native mut+alloc+free
29 24 4 7.9 osh-native mut+alloc+free+gc
29 29 0 7.7 osh-native mut+alloc+free+gc+exit
55 39 15 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 61 12 2.9 bash -
170 106 63 56.2 bumpleak/osh mut
181 122 59 57.1 _bin/cxx-opt+bumproot/osh mut
198 114 83 58.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 152 60 48.9 osh-native mut+alloc
220 156 64 50.7 osh-native mut+alloc+free
181 149 32 8.7 osh-native mut+alloc+free+gc
182 129 53 8.7 osh-native mut+alloc+free+gc+exit
233 148 84 65.8 _bin/cxx-opt+nopool/osh mut+alloc
211 155 56 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
10 9 1 3.5 dash -
20 21 0 4.3 bash -
18 14 4 3.4 zsh -
19 14 5 12.9 bumpleak/osh mut
20 17 4 12.2 _bin/cxx-opt+bumproot/osh mut
21 14 8 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 16 6 10.7 osh-native mut+alloc
23 11 13 10.9 osh-native mut+alloc+free
23 17 6 8.8 osh-native mut+alloc+free+gc
24 13 11 9.0 osh-native mut+alloc+free+gc+exit
26 24 2 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 16 10 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc