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 35 3 9 12.0 18.0 476,686 1,282 6 408,758 5 204,379 osh-native
parse.configure-coreutils 149 24 61 46.1 51.4 1,653,274 4,764 12 1,069,124 6 798,643 osh-native
parse.abuild 9 1 1 2.6 8.4 101,877 180 2 75,100 1 37,550 osh-native
ex.compute-fib 28 0 1 2.6 7.9 584,142 31,810 12 50,000 0 2,827 osh-native
ex.bashcomp-parse-help 181 0 3 10.6 8.8 995,220 27,376 21 50,000 0 3,823 osh-native
ex.abuild-print-help 24 1 2 2.8 8.9 116,293 478 3 85,338 1 42,669 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 3 3 1.6 dash -
23 19 4 3.0 bash -
104 58 52 3.4 zsh -
16 8 8 28.1 bumpleak/osh mut
20 20 0 30.0 _bin/cxx-opt+bumproot/osh mut
22 13 9 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 25 4 25.2 osh-native mut+alloc
32 12 20 25.6 osh-native mut+alloc+free
35 31 4 18.0 osh-native mut+alloc+free+gc
36 24 12 18.0 osh-native mut+alloc+free+gc+exit
44 28 16 32.2 _bin/cxx-opt+nopool/osh mut+alloc
49 33 15 22.0 _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.6 dash -
78 77 0 3.3 bash -
373 240 155 3.5 zsh -
50 45 4 84.9 bumpleak/osh mut
62 45 16 86.4 _bin/cxx-opt+bumproot/osh mut
73 56 16 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 70 29 73.6 osh-native mut+alloc
106 70 35 75.1 osh-native mut+alloc+free
149 113 35 51.4 osh-native mut+alloc+free+gc
157 137 20 52.2 osh-native mut+alloc+free+gc+exit
137 89 48 99.0 _bin/cxx-opt+nopool/osh mut+alloc
215 183 32 73.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.3 dash -
5 5 0 2.9 bash -
8 0 7 3.3 zsh -
6 6 0 12.0 bumpleak/osh mut
7 3 3 11.4 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.0 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 9 0 8.4 osh-native mut+alloc+free+gc+exit
12 6 6 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 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 2.9 bash -
23 19 5 3.3 zsh -
20 16 4 32.6 bumpleak/osh mut
26 18 7 32.7 _bin/cxx-opt+bumproot/osh mut
29 28 0 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 25 11 26.5 osh-native mut+alloc
38 21 17 26.7 osh-native mut+alloc+free
28 20 8 7.9 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
53 45 8 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.5 _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 73 0 3.0 bash -
167 107 60 54.8 bumpleak/osh mut
179 115 64 54.8 _bin/cxx-opt+bumproot/osh mut
203 135 67 56.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 138 75 47.1 osh-native mut+alloc
219 147 72 48.9 osh-native mut+alloc+free
181 104 76 8.8 osh-native mut+alloc+free+gc
182 133 48 8.8 osh-native mut+alloc+free+gc+exit
231 147 83 63.3 _bin/cxx-opt+nopool/osh mut+alloc
211 171 40 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 -
19 14 6 4.5 bash -
18 10 8 3.5 zsh -
20 13 7 11.6 bumpleak/osh mut
21 11 10 12.4 _bin/cxx-opt+bumproot/osh mut
21 12 10 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 18 5 10.9 osh-native mut+alloc
24 11 13 10.7 osh-native mut+alloc+free
24 16 8 8.9 osh-native mut+alloc+free+gc
24 19 6 8.8 osh-native mut+alloc+free+gc+exit
26 18 9 12.5 _bin/cxx-opt+nopool/osh mut+alloc
27 20 7 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc