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 10 12.0 17.8 476,676 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 151 24 64 46.1 51.5 1,653,264 4,764 12 1,069,110 6 798,636 osh-native
parse.abuild 9 1 1 2.6 8.5 101,867 180 2 75,086 1 37,543 osh-native
ex.compute-fib 28 0 2 2.6 7.9 584,128 31,810 12 50,000 0 2,818 osh-native
ex.bashcomp-parse-help 184 0 4 12.3 8.8 1,002,882 27,376 21 50,000 0 3,802 osh-native
ex.abuild-print-help 23 1 2 2.8 8.9 116,069 478 3 85,320 1 42,660 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 -
23 23 0 3.0 bash -
103 55 55 3.4 zsh -
16 12 4 28.9 bumpleak/osh mut
20 20 0 29.2 _bin/cxx-opt+bumproot/osh mut
24 20 4 29.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 13 17 25.0 osh-native mut+alloc
32 16 16 25.4 osh-native mut+alloc+free
37 28 8 17.8 osh-native mut+alloc+free+gc
38 25 13 18.0 osh-native mut+alloc+free+gc+exit
44 20 24 32.0 _bin/cxx-opt+nopool/osh mut+alloc
51 47 4 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 14 7 1.6 dash -
77 77 0 3.3 bash -
381 236 165 3.7 zsh -
49 37 12 85.6 bumpleak/osh mut
61 49 12 85.0 _bin/cxx-opt+bumproot/osh mut
70 57 12 85.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 77 20 73.4 osh-native mut+alloc
106 79 27 75.0 osh-native mut+alloc+free
151 127 24 51.5 osh-native mut+alloc+free+gc
159 143 16 52.3 osh-native mut+alloc+free+gc+exit
140 96 44 98.9 _bin/cxx-opt+nopool/osh mut+alloc
210 169 40 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.3 dash -
6 6 0 2.9 bash -
8 8 0 3.3 zsh -
6 6 0 10.5 bumpleak/osh mut
7 3 3 12.3 _bin/cxx-opt+bumproot/osh mut
7 4 4 10.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.1 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
9 3 6 8.5 osh-native mut+alloc+free+gc
9 9 0 8.4 osh-native mut+alloc+free+gc+exit
12 4 8 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 6 6 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 10 0 1.4 dash -
28 28 0 2.9 bash -
24 20 4 3.3 zsh -
19 15 4 31.2 bumpleak/osh mut
25 18 7 32.5 _bin/cxx-opt+bumproot/osh mut
28 24 4 31.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.3 osh-native mut+alloc
38 26 13 26.5 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
54 33 21 35.8 _bin/cxx-opt+nopool/osh mut+alloc
38 33 4 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 -
168 116 52 56.8 bumpleak/osh mut
180 112 68 58.0 _bin/cxx-opt+bumproot/osh mut
199 110 89 58.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 135 76 49.0 osh-native mut+alloc
224 152 72 50.6 osh-native mut+alloc+free
184 100 84 8.8 osh-native mut+alloc+free+gc
181 132 48 8.7 osh-native mut+alloc+free+gc+exit
235 151 84 65.3 _bin/cxx-opt+nopool/osh mut+alloc
215 179 36 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 1 3.4 dash -
20 18 2 4.3 bash -
18 5 13 3.4 zsh -
21 15 6 12.7 bumpleak/osh mut
20 10 10 12.0 _bin/cxx-opt+bumproot/osh mut
20 13 8 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 18 5 11.0 osh-native mut+alloc
22 17 5 10.7 osh-native mut+alloc+free
23 18 5 8.9 osh-native mut+alloc+free+gc
23 14 10 8.9 osh-native mut+alloc+free+gc+exit
26 12 14 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 18 9 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc