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 17.8 476,679 1,282 6 408,748 5 204,374 osh-native
parse.configure-coreutils 166 29 77 46.1 51.5 1,653,267 4,764 12 1,069,114 6 798,638 osh-native
parse.abuild 9 1 1 2.6 8.5 101,870 180 2 75,090 1 37,545 osh-native
ex.compute-fib 28 0 1 2.6 7.9 584,135 31,810 12 50,000 0 2,822 osh-native
ex.bashcomp-parse-help 180 0 3 10.6 8.8 995,212 27,376 21 50,000 0 3,817 osh-native
ex.abuild-print-help 23 1 2 2.8 8.9 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.4 dash -
23 23 0 3.0 bash -
105 57 54 3.3 zsh -
16 16 0 28.5 bumpleak/osh mut
20 20 0 28.6 _bin/cxx-opt+bumproot/osh mut
23 19 4 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.2 osh-native mut+alloc
32 24 8 25.4 osh-native mut+alloc+free
35 27 8 17.8 osh-native mut+alloc+free+gc
37 19 19 18.0 osh-native mut+alloc+free+gc+exit
44 16 28 33.1 _bin/cxx-opt+nopool/osh mut+alloc
50 27 23 22.4 _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 -
373 232 163 3.5 zsh -
50 41 8 84.6 bumpleak/osh mut
60 48 12 85.1 _bin/cxx-opt+bumproot/osh mut
69 50 19 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 75 24 73.3 osh-native mut+alloc
108 68 40 75.3 osh-native mut+alloc+free
166 150 16 51.5 osh-native mut+alloc+free+gc
159 151 8 52.2 osh-native mut+alloc+free+gc+exit
139 79 59 99.2 _bin/cxx-opt+nopool/osh mut+alloc
216 176 40 73.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 0 2 1.4 dash -
6 3 3 3.0 bash -
8 4 4 3.3 zsh -
6 6 0 11.0 bumpleak/osh mut
7 7 0 11.6 _bin/cxx-opt+bumproot/osh mut
7 7 0 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
12 12 0 10.0 osh-native mut+alloc
11 6 6 10.0 osh-native mut+alloc+free
9 9 0 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 4 8 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 -
29 29 0 2.9 bash -
23 15 8 3.3 zsh -
20 4 16 32.4 bumpleak/osh mut
25 21 4 33.4 _bin/cxx-opt+bumproot/osh mut
28 24 4 31.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 28 8 26.3 osh-native mut+alloc
38 21 17 26.7 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
28 24 4 7.7 osh-native mut+alloc+free+gc+exit
54 27 27 36.1 _bin/cxx-opt+nopool/osh mut+alloc
36 32 4 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
76 72 4 3.0 bash -
170 102 67 55.5 bumpleak/osh mut
179 111 67 56.1 _bin/cxx-opt+bumproot/osh mut
194 113 81 56.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
215 139 76 47.1 osh-native mut+alloc
219 147 72 48.8 osh-native mut+alloc+free
180 140 40 8.8 osh-native mut+alloc+free+gc
185 129 56 8.7 osh-native mut+alloc+free+gc+exit
233 145 88 64.2 _bin/cxx-opt+nopool/osh mut+alloc
209 160 48 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 9 2 3.4 dash -
20 18 2 4.3 bash -
18 14 5 3.5 zsh -
20 9 12 12.1 bumpleak/osh mut
21 17 5 12.9 _bin/cxx-opt+bumproot/osh mut
22 15 8 13.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 20 2 10.9 osh-native mut+alloc
23 17 6 10.9 osh-native mut+alloc+free
23 21 2 8.9 osh-native mut+alloc+free+gc
23 20 4 8.8 osh-native mut+alloc+free+gc+exit
25 17 8 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 14 13 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc