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 18.0 476,679 1,282 6 408,748 5 204,374 osh-native
parse.configure-coreutils 146 23 60 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.4 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.7 995,212 27,376 21 50,000 0 3,817 osh-native
ex.abuild-print-help 22 1 2 2.8 8.8 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 63 48 3.3 zsh -
17 10 7 28.1 bumpleak/osh mut
19 15 4 28.6 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.2 osh-native mut+alloc
31 18 13 25.6 osh-native mut+alloc+free
35 26 9 18.0 osh-native mut+alloc+free+gc
36 24 12 17.8 osh-native mut+alloc+free+gc+exit
43 19 23 31.9 _bin/cxx-opt+nopool/osh mut+alloc
49 36 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
21 21 0 1.4 dash -
77 73 4 3.1 bash -
375 201 196 3.5 zsh -
48 36 12 84.1 bumpleak/osh mut
60 52 8 85.0 _bin/cxx-opt+bumproot/osh mut
70 57 12 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 68 28 73.3 osh-native mut+alloc
106 77 28 75.0 osh-native mut+alloc+free
146 119 28 51.5 osh-native mut+alloc+free+gc
151 131 20 52.2 osh-native mut+alloc+free+gc+exit
138 89 49 97.9 _bin/cxx-opt+nopool/osh mut+alloc
210 182 28 73.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
2 2 0 1.4 dash -
6 6 0 2.9 bash -
8 4 4 3.3 zsh -
6 3 3 11.7 bumpleak/osh mut
6 6 0 10.8 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.1 osh-native mut+alloc
8 4 4 9.8 osh-native mut+alloc+free
9 6 3 8.4 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 4 7 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 11 0 1.4 dash -
28 28 0 2.9 bash -
24 20 4 3.3 zsh -
19 18 0 31.0 bumpleak/osh mut
25 21 4 32.6 _bin/cxx-opt+bumproot/osh mut
28 28 0 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
35 19 16 26.2 osh-native mut+alloc
37 8 29 26.7 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
27 27 0 7.7 osh-native mut+alloc+free+gc+exit
52 40 12 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 32 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 66 8 3.1 bash -
166 109 57 54.2 bumpleak/osh mut
180 120 60 56.4 _bin/cxx-opt+bumproot/osh mut
193 126 67 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 141 69 47.1 osh-native mut+alloc
217 149 68 48.9 osh-native mut+alloc+free
180 116 64 8.7 osh-native mut+alloc+free+gc
181 120 60 8.7 osh-native mut+alloc+free+gc+exit
228 136 92 63.9 _bin/cxx-opt+nopool/osh mut+alloc
205 153 52 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 1 3.5 dash -
19 14 5 4.3 bash -
18 12 7 3.4 zsh -
19 11 8 12.0 bumpleak/osh mut
19 11 8 11.5 _bin/cxx-opt+bumproot/osh mut
20 11 10 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 20 2 11.0 osh-native mut+alloc
22 12 10 11.0 osh-native mut+alloc+free
22 16 7 8.8 osh-native mut+alloc+free+gc
22 18 5 8.9 osh-native mut+alloc+free+gc+exit
25 15 10 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 17 9 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc