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 34 3 9 12.7 18.5 476,684 1,282 6 408,754 5 204,377 osh-native
parse.configure-coreutils 150 24 65 47.9 53.4 1,653,272 4,764 12 1,069,120 6 798,641 osh-native
parse.abuild 9 1 1 2.8 8.8 101,875 180 2 75,096 1 37,548 osh-native
ex.compute-fib 27 0 1 2.0 7.9 584,140 31,810 12 50,000 0 2,825 osh-native
ex.bashcomp-parse-help 180 0 3 4.9 8.5 995,217 27,376 21 50,000 0 3,820 osh-native
ex.abuild-print-help 22 1 2 2.9 9.2 116,284 478 3 85,332 1 42,666 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 7 0 1.4 dash -
23 23 0 3.0 bash -
103 50 59 3.4 zsh -
16 16 0 29.6 bumpleak/osh mut
19 15 4 29.2 _bin/cxx-opt+bumproot/osh mut
22 15 7 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 20 8 25.6 osh-native mut+alloc
30 19 11 25.8 osh-native mut+alloc+free
34 30 4 18.5 osh-native mut+alloc+free+gc
36 28 8 18.4 osh-native mut+alloc+free+gc+exit
42 19 23 31.9 _bin/cxx-opt+nopool/osh mut+alloc
49 37 11 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 21 0 1.6 dash -
78 78 0 3.1 bash -
375 236 158 3.7 zsh -
49 41 8 84.6 bumpleak/osh mut
60 52 8 84.5 _bin/cxx-opt+bumproot/osh mut
69 53 16 86.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 55 40 76.0 osh-native mut+alloc
100 64 36 76.2 osh-native mut+alloc+free
150 126 24 53.4 osh-native mut+alloc+free+gc
160 128 32 53.4 osh-native mut+alloc+free+gc+exit
138 101 36 99.6 _bin/cxx-opt+nopool/osh mut+alloc
210 169 40 72.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.3 dash -
6 6 0 2.9 bash -
8 0 8 3.3 zsh -
6 3 3 12.0 bumpleak/osh mut
6 3 3 12.1 _bin/cxx-opt+bumproot/osh mut
8 7 0 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.2 osh-native mut+alloc
9 0 9 10.1 osh-native mut+alloc+free
9 9 0 8.8 osh-native mut+alloc+free+gc
9 4 4 8.5 osh-native mut+alloc+free+gc+exit
12 11 0 11.3 _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
11 10 0 1.4 dash -
29 25 4 2.9 bash -
24 24 0 3.3 zsh -
20 12 8 32.6 bumpleak/osh mut
25 21 4 33.2 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 25 12 27.0 osh-native mut+alloc
37 29 8 27.0 osh-native mut+alloc+free
27 27 0 7.9 osh-native mut+alloc+free+gc
28 27 0 7.9 osh-native mut+alloc+free+gc+exit
54 35 19 36.3 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 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
73 64 8 3.1 bash -
168 108 60 55.4 bumpleak/osh mut
179 99 80 54.6 _bin/cxx-opt+bumproot/osh mut
191 135 56 55.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
206 141 65 48.2 osh-native mut+alloc
208 112 96 48.8 osh-native mut+alloc+free
180 132 48 8.5 osh-native mut+alloc+free+gc
182 142 39 8.7 osh-native mut+alloc+free+gc+exit
230 161 69 62.8 _bin/cxx-opt+nopool/osh mut+alloc
208 144 64 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 7 3 3.5 dash -
19 16 3 4.3 bash -
18 11 7 3.5 zsh -
20 17 3 12.2 bumpleak/osh mut
20 13 8 12.0 _bin/cxx-opt+bumproot/osh mut
21 13 8 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 12 10 11.0 osh-native mut+alloc
23 15 8 11.3 osh-native mut+alloc+free
22 18 5 9.2 osh-native mut+alloc+free+gc
23 14 9 8.9 osh-native mut+alloc+free+gc+exit
25 22 3 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 17 8 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc