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 3 9 12.0 18.0 476,686 1,282 6 408,756 5 204,378 osh-native
parse.configure-coreutils 147 24 60 46.1 51.6 1,653,274 4,764 12 1,069,122 6 798,642 osh-native
parse.abuild 9 1 1 2.6 8.5 101,877 180 2 75,098 1 37,549 osh-native
ex.compute-fib 28 0 1 2.6 8.0 584,142 31,810 12 50,000 0 2,826 osh-native
ex.bashcomp-parse-help 179 0 3 10.6 8.5 995,219 27,376 21 50,000 0 3,821 osh-native
ex.abuild-print-help 22 1 2 2.8 8.9 116,286 478 3 85,334 1 42,667 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 -
104 53 57 3.5 zsh -
16 16 0 28.1 bumpleak/osh mut
20 13 7 29.9 _bin/cxx-opt+bumproot/osh mut
22 22 0 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.0 osh-native mut+alloc
31 27 4 25.4 osh-native mut+alloc+free
36 27 8 18.0 osh-native mut+alloc+free+gc
37 24 12 17.7 osh-native mut+alloc+free+gc+exit
43 31 12 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 35 12 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
21 21 0 1.6 dash -
78 78 0 3.1 bash -
375 197 198 3.5 zsh -
50 42 8 85.1 bumpleak/osh mut
59 51 8 84.8 _bin/cxx-opt+bumproot/osh mut
70 49 21 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 77 20 73.3 osh-native mut+alloc
106 82 23 75.1 osh-native mut+alloc+free
147 130 16 51.6 osh-native mut+alloc+free+gc
151 123 28 52.3 osh-native mut+alloc+free+gc+exit
137 81 56 98.1 _bin/cxx-opt+nopool/osh mut+alloc
206 174 32 71.5 _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 0 7 3.3 zsh -
6 6 0 11.2 bumpleak/osh mut
6 6 0 10.7 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 9.8 osh-native mut+alloc
8 4 4 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
11 11 0 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
11 11 0 1.4 dash -
29 25 4 2.8 bash -
23 15 8 3.3 zsh -
19 19 0 32.9 bumpleak/osh mut
26 22 4 33.1 _bin/cxx-opt+bumproot/osh mut
28 28 0 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
38 17 21 26.3 osh-native mut+alloc
38 29 8 26.7 osh-native mut+alloc+free
28 27 0 8.0 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
53 26 26 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 32 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.0 bash -
168 100 68 54.2 bumpleak/osh mut
180 112 68 55.3 _bin/cxx-opt+bumproot/osh mut
194 127 67 56.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 143 67 47.1 osh-native mut+alloc
216 136 80 48.8 osh-native mut+alloc+free
179 131 48 8.5 osh-native mut+alloc+free+gc
180 128 52 8.5 osh-native mut+alloc+free+gc+exit
229 165 64 63.0 _bin/cxx-opt+nopool/osh mut+alloc
206 141 65 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.3 dash -
20 15 5 4.3 bash -
18 5 13 3.4 zsh -
19 11 8 11.9 bumpleak/osh mut
20 7 13 11.9 _bin/cxx-opt+bumproot/osh mut
19 11 8 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 17 4 10.9 osh-native mut+alloc
22 16 7 10.9 osh-native mut+alloc+free
22 16 6 8.9 osh-native mut+alloc+free+gc
23 21 2 8.9 osh-native mut+alloc+free+gc+exit
24 22 3 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 16 9 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc