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 18.0 476,636 1,282 6 408,686 5 204,343 osh-native
parse.configure-coreutils 151 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 2 3.1 7.9 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.9 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
7 7 0 1.4 dash -
23 23 0 3.1 bash -
105 52 59 3.4 zsh -
17 16 0 29.5 bumpleak/osh mut
20 16 4 29.8 _bin/cxx-opt+bumproot/osh mut
23 11 11 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 13 17 24.9 osh-native mut+alloc
32 28 4 25.6 osh-native mut+alloc+free
36 28 8 18.0 osh-native mut+alloc+free+gc
38 30 8 18.0 osh-native mut+alloc+free+gc+exit
43 39 4 32.9 _bin/cxx-opt+nopool/osh mut+alloc
51 39 12 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
22 22 0 1.6 dash -
77 77 0 3.3 bash -
379 211 190 3.5 zsh -
49 34 15 85.2 bumpleak/osh mut
61 46 15 85.2 _bin/cxx-opt+bumproot/osh mut
70 58 12 85.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 62 37 73.4 osh-native mut+alloc
105 74 31 75.2 osh-native mut+alloc+free
151 135 16 51.5 osh-native mut+alloc+free+gc
165 145 20 52.2 osh-native mut+alloc+free+gc+exit
141 90 51 97.9 _bin/cxx-opt+nopool/osh mut+alloc
218 186 32 72.7 _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 3 3 3.0 bash -
8 0 8 3.3 zsh -
6 3 3 10.7 bumpleak/osh mut
8 0 8 11.9 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 0 9 9.8 osh-native mut+alloc
9 6 3 10.1 osh-native mut+alloc+free
9 6 3 8.4 osh-native mut+alloc+free+gc
9 5 5 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 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 -
28 24 4 2.9 bash -
24 20 4 3.3 zsh -
20 20 0 32.0 bumpleak/osh mut
26 26 0 32.1 _bin/cxx-opt+bumproot/osh mut
29 21 8 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 29 8 26.6 osh-native mut+alloc
39 19 19 27.1 osh-native mut+alloc+free
29 25 4 7.9 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
55 47 8 36.2 _bin/cxx-opt+nopool/osh mut+alloc
42 34 8 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 73 0 3.0 bash -
172 88 84 56.0 bumpleak/osh mut
182 130 51 56.7 _bin/cxx-opt+bumproot/osh mut
196 130 65 57.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 132 80 48.6 osh-native mut+alloc
219 126 93 50.6 osh-native mut+alloc+free
183 131 52 8.7 osh-native mut+alloc+free+gc
184 120 64 8.7 osh-native mut+alloc+free+gc+exit
233 144 88 66.2 _bin/cxx-opt+nopool/osh mut+alloc
212 148 64 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 7 3 3.4 dash -
20 16 4 4.5 bash -
18 11 8 3.4 zsh -
20 7 13 12.2 bumpleak/osh mut
21 14 7 12.8 _bin/cxx-opt+bumproot/osh mut
21 15 6 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 16 6 10.7 osh-native mut+alloc
23 16 8 10.9 osh-native mut+alloc+free
23 17 6 8.9 osh-native mut+alloc+free+gc
24 12 13 8.8 osh-native mut+alloc+free+gc+exit
25 14 11 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 20 6 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc