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 37 4 10 12.0 17.8 476,636 1,282 6 408,686 5 204,343 osh-native
parse.configure-coreutils 165 29 76 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.5 101,827 180 2 75,028 1 37,514 osh-native
ex.compute-fib 29 0 2 3.1 7.7 584,088 31,810 12 50,000 0 2,788 osh-native
ex.bashcomp-parse-help 184 0 4 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.7 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.4 dash -
23 23 0 2.9 bash -
105 59 52 3.4 zsh -
16 8 8 29.2 bumpleak/osh mut
20 16 4 29.9 _bin/cxx-opt+bumproot/osh mut
23 15 7 29.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 24.9 osh-native mut+alloc
33 28 4 25.4 osh-native mut+alloc+free
37 28 8 17.8 osh-native mut+alloc+free+gc
37 33 4 17.8 osh-native mut+alloc+free+gc+exit
43 35 8 31.9 _bin/cxx-opt+nopool/osh mut+alloc
49 32 16 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
21 18 4 1.6 dash -
77 74 4 3.1 bash -
383 206 198 3.5 zsh -
51 35 16 84.9 bumpleak/osh mut
61 53 8 84.5 _bin/cxx-opt+bumproot/osh mut
72 40 32 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 74 25 73.4 osh-native mut+alloc
108 67 40 75.1 osh-native mut+alloc+free
165 145 20 51.5 osh-native mut+alloc+free+gc
170 141 28 52.3 osh-native mut+alloc+free+gc+exit
140 107 32 98.2 _bin/cxx-opt+nopool/osh mut+alloc
235 191 44 71.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 3 3 2.9 bash -
8 4 4 3.3 zsh -
7 7 0 11.5 bumpleak/osh mut
7 7 0 10.8 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.8 osh-native mut+alloc
9 0 9 10.0 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 9 0 8.4 osh-native mut+alloc+free+gc+exit
12 12 0 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 6 6 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 2.9 bash -
24 12 12 3.4 zsh -
20 4 16 32.1 bumpleak/osh mut
26 26 0 33.5 _bin/cxx-opt+bumproot/osh mut
29 21 8 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 29 8 26.6 osh-native mut+alloc
39 23 16 27.0 osh-native mut+alloc+free
29 29 0 7.7 osh-native mut+alloc+free+gc
29 25 4 7.9 osh-native mut+alloc+free+gc+exit
54 33 21 36.3 _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 69 4 3.1 bash -
170 101 69 55.5 bumpleak/osh mut
180 112 68 56.3 _bin/cxx-opt+bumproot/osh mut
197 148 48 58.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 119 95 48.9 osh-native mut+alloc
223 130 93 50.6 osh-native mut+alloc+free
184 124 60 8.7 osh-native mut+alloc+free+gc
184 144 40 8.7 osh-native mut+alloc+free+gc+exit
235 154 81 64.3 _bin/cxx-opt+nopool/osh mut+alloc
211 163 48 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 5 6 3.7 dash -
20 13 7 4.5 bash -
18 5 13 3.5 zsh -
19 12 7 11.4 bumpleak/osh mut
20 14 7 12.2 _bin/cxx-opt+bumproot/osh mut
20 17 4 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 11 11 10.6 osh-native mut+alloc
23 22 2 11.0 osh-native mut+alloc+free
23 16 7 8.7 osh-native mut+alloc+free+gc
24 22 2 8.7 osh-native mut+alloc+free+gc+exit
25 17 8 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 19 7 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc