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 11 12.0 17.7 476,679 1,282 6 408,748 5 204,374 osh-native
parse.configure-coreutils 164 28 76 46.1 51.6 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 29 0 2 2.6 8.0 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.7 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.4 dash -
23 23 0 3.0 bash -
103 56 54 3.4 zsh -
16 16 0 28.5 bumpleak/osh mut
20 12 8 29.5 _bin/cxx-opt+bumproot/osh mut
23 19 4 29.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.2 osh-native mut+alloc
32 16 16 25.4 osh-native mut+alloc+free
37 33 4 17.7 osh-native mut+alloc+free+gc
39 34 4 17.8 osh-native mut+alloc+free+gc+exit
43 31 12 33.1 _bin/cxx-opt+nopool/osh mut+alloc
47 35 12 22.3 _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.4 dash -
77 73 4 3.1 bash -
380 218 183 3.5 zsh -
50 46 4 84.9 bumpleak/osh mut
62 53 8 84.6 _bin/cxx-opt+bumproot/osh mut
70 58 12 84.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
101 64 36 73.4 osh-native mut+alloc
106 59 47 75.3 osh-native mut+alloc+free
164 113 51 51.6 osh-native mut+alloc+free+gc
163 131 32 52.2 osh-native mut+alloc+free+gc+exit
138 91 47 99.2 _bin/cxx-opt+nopool/osh mut+alloc
231 195 37 73.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 2.9 bash -
8 0 7 3.4 zsh -
6 3 3 10.9 bumpleak/osh mut
7 7 0 11.2 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.0 osh-native mut+alloc
8 4 4 10.0 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
11 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 7 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
10 7 3 1.6 dash -
28 24 4 3.0 bash -
25 14 11 3.3 zsh -
19 19 0 31.6 bumpleak/osh mut
25 21 4 31.5 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.3 osh-native mut+alloc
38 19 19 26.7 osh-native mut+alloc+free
29 28 0 8.0 osh-native mut+alloc+free+gc
29 25 4 7.9 osh-native mut+alloc+free+gc+exit
53 34 19 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
72 72 0 3.1 bash -
166 113 53 54.6 bumpleak/osh mut
181 120 60 54.4 _bin/cxx-opt+bumproot/osh mut
194 125 69 56.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 141 72 47.1 osh-native mut+alloc
221 133 88 48.9 osh-native mut+alloc+free
182 107 75 8.8 osh-native mut+alloc+free+gc
182 117 64 8.5 osh-native mut+alloc+free+gc+exit
232 176 56 62.4 _bin/cxx-opt+nopool/osh mut+alloc
207 134 73 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 9 2 3.4 dash -
20 18 2 4.3 bash -
18 7 11 3.4 zsh -
20 15 5 12.8 bumpleak/osh mut
19 18 2 13.6 _bin/cxx-opt+bumproot/osh mut
20 10 10 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 13 9 10.9 osh-native mut+alloc
23 15 8 11.0 osh-native mut+alloc+free
23 16 7 8.7 osh-native mut+alloc+free+gc
23 21 3 8.8 osh-native mut+alloc+free+gc+exit
25 15 10 12.4 _bin/cxx-opt+nopool/osh mut+alloc
25 19 7 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc