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 38 5 11 12.0 18.0 476,689 1,282 6 408,756 5 204,378 osh-native
parse.configure-coreutils 173 28 83 46.1 51.4 1,653,277 4,764 12 1,069,122 6 798,642 osh-native
parse.abuild 9 1 2 2.6 8.5 101,880 180 2 75,098 1 37,549 osh-native
ex.compute-fib 29 0 1 2.6 7.9 584,145 31,810 12 50,000 0 2,826 osh-native
ex.bashcomp-parse-help 183 0 4 10.6 8.7 995,222 27,376 21 50,000 0 3,821 osh-native
ex.abuild-print-help 23 1 2 2.8 8.8 116,289 478 3 85,334 1 42,667 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 19 4 3.1 bash -
105 57 55 3.4 zsh -
16 16 0 29.2 bumpleak/osh mut
20 20 0 29.5 _bin/cxx-opt+bumproot/osh mut
22 15 7 29.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.2 osh-native mut+alloc
33 18 14 25.4 osh-native mut+alloc+free
38 34 4 18.0 osh-native mut+alloc+free+gc
38 34 4 17.8 osh-native mut+alloc+free+gc+exit
43 30 13 31.9 _bin/cxx-opt+nopool/osh mut+alloc
52 40 12 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
22 21 0 1.4 dash -
78 74 4 3.1 bash -
381 227 176 3.5 zsh -
48 43 4 85.3 bumpleak/osh mut
60 48 12 85.5 _bin/cxx-opt+bumproot/osh mut
70 53 16 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 78 21 73.3 osh-native mut+alloc
107 75 32 75.1 osh-native mut+alloc+free
173 145 28 51.4 osh-native mut+alloc+free+gc
178 154 24 52.2 osh-native mut+alloc+free+gc+exit
141 88 52 97.4 _bin/cxx-opt+nopool/osh mut+alloc
243 203 40 72.2 _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.4 dash -
6 3 3 2.9 bash -
8 0 8 3.3 zsh -
6 0 6 12.3 bumpleak/osh mut
7 7 0 10.9 _bin/cxx-opt+bumproot/osh mut
8 4 4 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.0 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
9 5 5 8.5 osh-native mut+alloc+free+gc
10 3 6 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.1 _bin/cxx-opt+nopool/osh mut+alloc
13 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.6 dash -
29 29 0 3.0 bash -
24 16 8 3.4 zsh -
19 9 9 32.7 bumpleak/osh mut
28 27 0 33.1 _bin/cxx-opt+bumproot/osh mut
29 29 0 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 16 20 26.3 osh-native mut+alloc
40 31 8 26.6 osh-native mut+alloc+free
29 28 0 7.9 osh-native mut+alloc+free+gc
29 25 4 8.0 osh-native mut+alloc+free+gc+exit
54 33 21 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 29 8 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
74 74 0 3.0 bash -
169 88 80 53.9 bumpleak/osh mut
182 95 87 54.6 _bin/cxx-opt+bumproot/osh mut
196 102 94 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 151 60 47.1 osh-native mut+alloc
218 133 84 48.9 osh-native mut+alloc+free
183 91 91 8.7 osh-native mut+alloc+free+gc
182 129 52 8.7 osh-native mut+alloc+free+gc+exit
232 136 96 63.8 _bin/cxx-opt+nopool/osh mut+alloc
209 165 43 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 5 6 3.5 dash -
20 17 4 4.5 bash -
18 13 5 3.4 zsh -
19 16 3 11.8 bumpleak/osh mut
20 15 5 12.0 _bin/cxx-opt+bumproot/osh mut
22 15 8 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 11 10.9 osh-native mut+alloc
23 17 7 10.6 osh-native mut+alloc+free
23 13 11 8.8 osh-native mut+alloc+free+gc
24 17 7 8.9 osh-native mut+alloc+free+gc+exit
25 22 4 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 24 3 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc