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,679 1,282 6 408,748 5 204,374 osh-native
parse.configure-coreutils 164 28 75 46.1 51.4 1,653,267 4,764 12 1,069,114 6 798,638 osh-native
parse.abuild 9 1 1 2.6 8.4 101,870 180 2 75,090 1 37,545 osh-native
ex.compute-fib 28 0 2 2.6 7.7 584,135 31,810 12 50,000 0 2,822 osh-native
ex.bashcomp-parse-help 187 0 4 10.6 8.7 995,212 27,376 21 50,000 0 3,817 osh-native
ex.abuild-print-help 25 1 2 2.8 9.0 116,279 478 3 85,326 1 42,663 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 -
24 20 4 3.1 bash -
111 62 55 3.4 zsh -
17 4 12 28.9 bumpleak/osh mut
20 20 0 29.0 _bin/cxx-opt+bumproot/osh mut
23 19 4 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 17 13 25.2 osh-native mut+alloc
32 20 12 25.6 osh-native mut+alloc+free
36 36 0 17.8 osh-native mut+alloc+free+gc
42 33 8 18.1 osh-native mut+alloc+free+gc+exit
44 32 12 31.8 _bin/cxx-opt+nopool/osh mut+alloc
49 37 11 22.1 _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 21 0 1.6 dash -
77 77 0 3.3 bash -
391 193 219 3.7 zsh -
51 43 8 83.9 bumpleak/osh mut
61 45 15 85.6 _bin/cxx-opt+bumproot/osh mut
71 47 24 85.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 51 47 73.4 osh-native mut+alloc
109 70 39 75.2 osh-native mut+alloc+free
164 140 24 51.4 osh-native mut+alloc+free+gc
174 154 20 52.2 osh-native mut+alloc+free+gc+exit
142 101 40 98.6 _bin/cxx-opt+nopool/osh mut+alloc
232 196 36 71.4 _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 2.9 bash -
8 8 0 3.3 zsh -
6 6 0 11.3 bumpleak/osh mut
7 0 7 10.6 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 6 10.0 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 6 3 8.4 osh-native mut+alloc+free+gc
9 9 0 8.4 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 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 28 0 3.0 bash -
24 12 12 3.3 zsh -
20 15 4 32.2 bumpleak/osh mut
26 22 4 32.9 _bin/cxx-opt+bumproot/osh mut
28 18 11 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 24 12 26.3 osh-native mut+alloc
39 31 8 26.6 osh-native mut+alloc+free
28 28 0 7.7 osh-native mut+alloc+free+gc
28 18 11 7.9 osh-native mut+alloc+free+gc+exit
54 34 19 36.0 _bin/cxx-opt+nopool/osh mut+alloc
38 34 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 114 55 55.0 bumpleak/osh mut
179 122 57 54.8 _bin/cxx-opt+bumproot/osh mut
193 116 76 55.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 135 75 47.0 osh-native mut+alloc
215 163 52 48.8 osh-native mut+alloc+free
187 155 32 8.7 osh-native mut+alloc+free+gc
182 115 67 8.7 osh-native mut+alloc+free+gc+exit
230 165 64 63.6 _bin/cxx-opt+nopool/osh mut+alloc
209 168 40 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
11 7 5 3.5 dash -
22 16 6 4.3 bash -
19 11 9 3.5 zsh -
22 14 8 12.2 bumpleak/osh mut
22 19 3 12.5 _bin/cxx-opt+bumproot/osh mut
22 19 3 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
23 14 9 10.9 osh-native mut+alloc
24 12 12 11.0 osh-native mut+alloc+free
25 20 5 9.0 osh-native mut+alloc+free+gc
23 23 1 8.9 osh-native mut+alloc+free+gc+exit
26 15 11 12.6 _bin/cxx-opt+nopool/osh mut+alloc
27 20 7 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc