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 3 9 12.0 18.0 476,636 1,282 6 408,686 5 204,343 osh-native
parse.configure-coreutils 154 25 65 46.1 51.3 1,653,224 4,764 12 1,069,052 6 798,607 osh-native
parse.abuild 9 1 1 2.6 8.5 101,827 180 2 75,028 1 37,514 osh-native
ex.compute-fib 29 0 2 3.1 7.9 584,088 31,810 12 50,000 0 2,788 osh-native
ex.bashcomp-parse-help 184 0 3 12.3 8.8 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 -
25 20 4 3.1 bash -
105 53 59 3.3 zsh -
17 13 4 28.0 bumpleak/osh mut
25 21 4 28.4 _bin/cxx-opt+bumproot/osh mut
24 16 8 28.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 11 19 24.9 osh-native mut+alloc
32 20 12 25.6 osh-native mut+alloc+free
36 27 8 18.0 osh-native mut+alloc+free+gc
37 33 4 18.0 osh-native mut+alloc+free+gc+exit
44 26 17 32.6 _bin/cxx-opt+nopool/osh mut+alloc
50 31 19 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
22 18 4 1.6 dash -
78 74 4 3.3 bash -
384 212 195 3.4 zsh -
50 35 15 85.3 bumpleak/osh mut
62 42 19 85.0 _bin/cxx-opt+bumproot/osh mut
70 58 12 86.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
103 64 40 73.3 osh-native mut+alloc
107 64 44 75.1 osh-native mut+alloc+free
154 122 32 51.3 osh-native mut+alloc+free+gc
155 143 12 52.3 osh-native mut+alloc+free+gc+exit
140 92 48 99.0 _bin/cxx-opt+nopool/osh mut+alloc
215 190 24 72.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 0 2 1.4 dash -
6 6 0 2.9 bash -
8 4 4 3.3 zsh -
6 0 6 10.6 bumpleak/osh mut
7 0 7 10.5 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.0 osh-native mut+alloc
9 9 0 9.8 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 3 6 8.4 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.5 _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
11 7 3 1.4 dash -
29 29 0 3.0 bash -
24 23 0 3.1 zsh -
20 8 12 31.7 bumpleak/osh mut
26 21 4 31.6 _bin/cxx-opt+bumproot/osh mut
29 29 0 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
43 19 23 26.7 osh-native mut+alloc
40 31 8 27.1 osh-native mut+alloc+free
29 29 0 7.9 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
54 38 15 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.3 _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 74 0 3.1 bash -
172 104 68 55.8 bumpleak/osh mut
179 105 73 57.2 _bin/cxx-opt+bumproot/osh mut
196 128 68 58.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 96 116 48.9 osh-native mut+alloc
222 142 79 50.6 osh-native mut+alloc+free
184 131 52 8.8 osh-native mut+alloc+free+gc
183 127 55 8.7 osh-native mut+alloc+free+gc+exit
237 138 99 65.2 _bin/cxx-opt+nopool/osh mut+alloc
211 147 64 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 4 6 3.4 dash -
20 13 7 4.3 bash -
18 16 2 3.5 zsh -
18 15 4 13.0 bumpleak/osh mut
22 17 4 12.8 _bin/cxx-opt+bumproot/osh mut
21 18 4 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
23 11 13 10.9 osh-native mut+alloc
23 17 6 10.9 osh-native mut+alloc+free
23 18 5 8.8 osh-native mut+alloc+free+gc
23 19 4 8.7 osh-native mut+alloc+free+gc+exit
25 12 14 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 18 8 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc