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 38 4 11 12.0 17.7 476,679 1,282 6 408,748 5 204,374 osh-native
parse.configure-coreutils 158 27 69 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 28 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.7 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 -
24 23 0 3.1 bash -
105 52 59 3.4 zsh -
17 13 4 28.2 bumpleak/osh mut
20 16 4 30.4 _bin/cxx-opt+bumproot/osh mut
22 22 0 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 26 4 25.0 osh-native mut+alloc
32 24 8 25.4 osh-native mut+alloc+free
38 33 4 17.7 osh-native mut+alloc+free+gc
39 23 15 18.0 osh-native mut+alloc+free+gc+exit
43 23 20 32.8 _bin/cxx-opt+nopool/osh mut+alloc
49 34 15 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 73 4 3.3 bash -
380 206 196 3.4 zsh -
50 46 4 84.4 bumpleak/osh mut
61 60 0 84.7 _bin/cxx-opt+bumproot/osh mut
70 61 8 86.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
100 56 44 73.4 osh-native mut+alloc
108 87 20 75.3 osh-native mut+alloc+free
158 131 28 51.6 osh-native mut+alloc+free+gc
163 139 24 52.2 osh-native mut+alloc+free+gc+exit
139 95 44 98.4 _bin/cxx-opt+nopool/osh mut+alloc
234 205 28 73.6 _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 0 2 1.4 dash -
6 3 3 2.9 bash -
8 4 4 3.3 zsh -
6 6 0 10.9 bumpleak/osh mut
6 6 0 10.7 _bin/cxx-opt+bumproot/osh mut
7 3 3 11.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.8 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
9 5 5 8.4 osh-native mut+alloc+free+gc
10 10 0 8.5 osh-native mut+alloc+free+gc+exit
11 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 8 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 10 0 1.4 dash -
29 28 0 2.9 bash -
24 24 0 3.3 zsh -
19 18 0 30.9 bumpleak/osh mut
26 22 4 32.6 _bin/cxx-opt+bumproot/osh mut
28 20 8 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 24 12 26.1 osh-native mut+alloc
38 26 11 26.7 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
53 42 11 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 29 7 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
74 70 4 3.1 bash -
167 127 40 54.9 bumpleak/osh mut
179 131 48 55.7 _bin/cxx-opt+bumproot/osh mut
195 130 65 56.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 122 91 47.1 osh-native mut+alloc
221 144 76 48.9 osh-native mut+alloc+free
182 126 55 8.7 osh-native mut+alloc+free+gc
184 128 56 8.7 osh-native mut+alloc+free+gc+exit
231 155 76 62.4 _bin/cxx-opt+nopool/osh mut+alloc
207 150 57 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 6 4 3.5 dash -
20 13 7 4.3 bash -
18 9 9 3.4 zsh -
20 17 3 12.5 bumpleak/osh mut
20 15 5 12.1 _bin/cxx-opt+bumproot/osh mut
21 16 6 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 17 6 10.9 osh-native mut+alloc
23 16 7 10.9 osh-native mut+alloc+free
23 17 6 8.8 osh-native mut+alloc+free+gc
23 22 2 9.0 osh-native mut+alloc+free+gc+exit
25 18 8 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 21 4 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc