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,636 1,282 6 408,686 5 204,343 osh-native
parse.configure-coreutils 152 24 63 46.1 51.5 1,653,224 4,764 12 1,069,052 6 798,607 osh-native
parse.abuild 9 1 1 2.6 8.4 101,827 180 2 75,028 1 37,514 osh-native
ex.compute-fib 29 0 1 3.1 7.7 584,088 31,810 12 50,000 0 2,788 osh-native
ex.bashcomp-parse-help 183 0 3 12.3 8.7 1,001,962 27,376 21 50,000 0 3,776 osh-native
ex.abuild-print-help 23 1 2 2.8 8.8 116,032 478 3 85,262 1 42,631 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 -
23 19 4 3.1 bash -
105 52 60 3.4 zsh -
17 16 0 29.6 bumpleak/osh mut
20 16 4 28.7 _bin/cxx-opt+bumproot/osh mut
22 11 11 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 25 4 25.0 osh-native mut+alloc
32 24 8 25.6 osh-native mut+alloc+free
35 24 12 17.8 osh-native mut+alloc+free+gc
36 36 0 18.0 osh-native mut+alloc+free+gc+exit
43 22 22 33.2 _bin/cxx-opt+nopool/osh mut+alloc
48 44 4 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 18 4 1.6 dash -
77 77 0 3.3 bash -
376 204 192 3.7 zsh -
50 41 8 84.7 bumpleak/osh mut
61 44 16 85.1 _bin/cxx-opt+bumproot/osh mut
71 62 8 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 78 20 73.1 osh-native mut+alloc
106 77 28 75.3 osh-native mut+alloc+free
152 132 20 51.5 osh-native mut+alloc+free+gc
154 133 20 52.2 osh-native mut+alloc+free+gc+exit
140 101 39 98.5 _bin/cxx-opt+nopool/osh mut+alloc
210 182 28 72.6 _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 0 2 1.4 dash -
7 7 0 3.0 bash -
8 8 0 3.4 zsh -
6 3 3 10.5 bumpleak/osh mut
7 4 4 11.9 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 3 6 8.3 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
13 8 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
10 10 0 1.4 dash -
29 29 0 3.0 bash -
24 20 4 3.3 zsh -
19 0 19 31.8 bumpleak/osh mut
27 23 4 33.1 _bin/cxx-opt+bumproot/osh mut
29 21 8 33.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 26 11 26.6 osh-native mut+alloc
39 39 0 27.1 osh-native mut+alloc+free
29 29 0 7.7 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
54 42 12 36.2 _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
72 72 0 3.0 bash -
169 106 63 56.8 bumpleak/osh mut
178 123 55 58.7 _bin/cxx-opt+bumproot/osh mut
194 107 87 58.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
228 144 84 48.9 osh-native mut+alloc
222 125 97 50.6 osh-native mut+alloc+free
183 131 52 8.7 osh-native mut+alloc+free+gc
182 149 32 8.5 osh-native mut+alloc+free+gc+exit
233 156 76 65.6 _bin/cxx-opt+nopool/osh mut+alloc
211 162 49 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 9 1 3.5 dash -
20 15 5 4.5 bash -
18 5 13 3.5 zsh -
19 6 12 11.3 bumpleak/osh mut
20 13 8 12.2 _bin/cxx-opt+bumproot/osh mut
21 13 8 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 21 1 10.7 osh-native mut+alloc
23 17 6 10.7 osh-native mut+alloc+free
23 13 10 8.8 osh-native mut+alloc+free+gc
23 18 5 8.7 osh-native mut+alloc+free+gc+exit
25 15 11 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 21 4 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc