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 176 30 86 46.1 51.6 1,653,267 4,764 12 1,069,114 6 798,638 osh-native
parse.abuild 10 1 1 2.6 8.4 101,870 180 2 75,090 1 37,545 osh-native
ex.compute-fib 29 0 2 2.6 7.9 584,135 31,810 12 50,000 0 2,822 osh-native
ex.bashcomp-parse-help 182 0 4 10.6 8.8 995,212 27,376 21 50,000 0 3,817 osh-native
ex.abuild-print-help 23 1 2 2.8 8.8 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
6 6 0 1.6 dash -
23 23 0 3.0 bash -
105 44 67 3.4 zsh -
16 4 12 28.9 bumpleak/osh mut
20 20 0 29.5 _bin/cxx-opt+bumproot/osh mut
23 11 11 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 24.9 osh-native mut+alloc
32 24 8 25.6 osh-native mut+alloc+free
36 36 0 17.8 osh-native mut+alloc+free+gc
37 37 0 17.8 osh-native mut+alloc+free+gc+exit
43 39 4 31.9 _bin/cxx-opt+nopool/osh mut+alloc
49 49 0 22.2 _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.4 dash -
78 74 4 3.1 bash -
377 242 156 3.4 zsh -
50 33 17 85.9 bumpleak/osh mut
61 49 12 85.0 _bin/cxx-opt+bumproot/osh mut
70 49 20 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
101 78 23 73.3 osh-native mut+alloc
109 74 35 75.1 osh-native mut+alloc+free
176 152 24 51.6 osh-native mut+alloc+free+gc
170 141 28 52.2 osh-native mut+alloc+free+gc+exit
139 92 48 99.0 _bin/cxx-opt+nopool/osh mut+alloc
242 198 44 71.1 _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 3.0 bash -
8 0 8 3.3 zsh -
7 0 7 11.5 bumpleak/osh mut
7 3 3 10.9 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 3 6 9.8 osh-native mut+alloc
10 6 3 10.1 osh-native mut+alloc+free
10 0 9 8.4 osh-native mut+alloc+free+gc
9 5 5 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 12 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
11 7 3 1.6 dash -
29 21 7 3.0 bash -
24 12 12 3.3 zsh -
19 15 4 32.6 bumpleak/osh mut
27 23 4 31.8 _bin/cxx-opt+bumproot/osh mut
29 18 11 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 26 11 26.3 osh-native mut+alloc
38 27 12 26.7 osh-native mut+alloc+free
29 28 0 7.9 osh-native mut+alloc+free+gc
28 28 0 7.7 osh-native mut+alloc+free+gc+exit
54 38 15 35.9 _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 72 0 3.1 bash -
167 111 56 54.3 bumpleak/osh mut
180 120 60 55.9 _bin/cxx-opt+bumproot/osh mut
196 144 52 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 127 84 46.9 osh-native mut+alloc
219 143 75 48.8 osh-native mut+alloc+free
182 142 39 8.8 osh-native mut+alloc+free+gc
181 118 63 8.5 osh-native mut+alloc+free+gc+exit
232 156 76 63.2 _bin/cxx-opt+nopool/osh mut+alloc
209 136 72 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 8 1 3.5 dash -
19 15 5 4.3 bash -
18 16 2 3.5 zsh -
21 15 6 12.7 bumpleak/osh mut
21 18 3 12.8 _bin/cxx-opt+bumproot/osh mut
21 13 9 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 11 10.7 osh-native mut+alloc
23 21 3 10.9 osh-native mut+alloc+free
23 16 7 8.8 osh-native mut+alloc+free+gc
24 17 8 8.7 osh-native mut+alloc+free+gc+exit
25 11 14 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 15 10 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc