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 25 2 6 12.0 17.9 476,694 1,282 6 408,770 5 204,385 osh-native
parse.configure-coreutils 106 19 44 46.1 51.5 1,653,282 4,764 12 1,069,136 6 798,649 osh-native
parse.abuild 7 0 1 2.6 8.6 101,885 180 2 75,112 1 37,556 osh-native
ex.compute-fib 20 0 1 2.6 7.9 584,150 31,810 12 50,000 0 2,832 osh-native
ex.bashcomp-parse-help 128 0 2 10.6 8.7 995,227 27,376 21 50,000 0 3,823 osh-native
ex.abuild-print-help 23 0 1 2.8 9.0 116,294 478 3 85,348 1 42,674 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
4 4 0 1.7 dash -
16 16 0 3.3 bash -
107 71 43 3.5 zsh -
12 12 0 29.8 bumpleak/osh mut
15 14 0 29.8 _bin/cxx-opt+bumproot/osh mut
16 12 4 28.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 7 15 25.0 osh-native mut+alloc
24 23 0 25.4 osh-native mut+alloc+free
25 21 4 17.9 osh-native mut+alloc+free+gc
26 15 11 18.0 osh-native mut+alloc+free+gc+exit
32 28 4 33.1 _bin/cxx-opt+nopool/osh mut+alloc
34 30 4 22.5 _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
15 11 4 1.6 dash -
53 53 0 3.2 bash -
313 186 144 3.5 zsh -
35 27 8 85.2 bumpleak/osh mut
45 37 7 84.7 _bin/cxx-opt+bumproot/osh mut
51 43 8 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
71 59 12 73.4 osh-native mut+alloc
79 43 35 75.1 osh-native mut+alloc+free
106 98 8 51.5 osh-native mut+alloc+free+gc
107 91 16 50.6 osh-native mut+alloc+free+gc+exit
102 61 41 97.8 _bin/cxx-opt+nopool/osh mut+alloc
150 126 24 72.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
1 1 0 1.6 dash -
4 0 4 3.1 bash -
6 6 0 3.4 zsh -
4 0 5 11.1 bumpleak/osh mut
5 5 0 10.9 _bin/cxx-opt+bumproot/osh mut
5 3 3 10.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
6 3 3 10.1 osh-native mut+alloc
7 6 0 10.2 osh-native mut+alloc+free
7 3 3 8.6 osh-native mut+alloc+free+gc
7 7 0 8.7 osh-native mut+alloc+free+gc+exit
9 0 8 11.5 _bin/cxx-opt+nopool/osh mut+alloc
9 4 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
7 7 0 1.5 dash -
22 18 4 3.1 bash -
16 8 8 3.5 zsh -
14 14 0 31.9 bumpleak/osh mut
18 15 4 32.9 _bin/cxx-opt+bumproot/osh mut
20 20 0 31.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 15 11 26.5 osh-native mut+alloc
27 12 16 26.7 osh-native mut+alloc+free
20 19 0 7.9 osh-native mut+alloc+free+gc
20 19 0 7.9 osh-native mut+alloc+free+gc+exit
39 23 15 36.0 _bin/cxx-opt+nopool/osh mut+alloc
26 26 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
53 53 0 3.1 bash -
117 84 32 55.4 bumpleak/osh mut
127 86 41 56.4 _bin/cxx-opt+bumproot/osh mut
136 108 28 55.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
150 123 28 47.0 osh-native mut+alloc
155 102 53 49.0 osh-native mut+alloc+free
128 84 44 8.7 osh-native mut+alloc+free+gc
128 64 64 8.6 osh-native mut+alloc+free+gc+exit
167 127 40 64.2 _bin/cxx-opt+nopool/osh mut+alloc
147 111 36 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
11 9 3 3.5 dash -
22 15 7 4.6 bash -
21 12 10 3.7 zsh -
25 19 6 11.7 bumpleak/osh mut
22 21 1 13.6 _bin/cxx-opt+bumproot/osh mut
24 16 8 13.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
23 16 8 11.1 osh-native mut+alloc
24 19 5 11.3 osh-native mut+alloc+free
23 13 10 9.0 osh-native mut+alloc+free+gc
29 20 9 9.1 osh-native mut+alloc+free+gc+exit
26 9 17 12.5 _bin/cxx-opt+nopool/osh mut+alloc
35 18 18 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc