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,699 1,282 6 408,772 5 204,386 osh-native
parse.configure-coreutils 146 23 59 44.6 49.9 1,653,287 4,764 12 1,030,656 6 769,412 osh-native
parse.abuild 9 1 1 2.6 8.3 101,890 180 2 75,114 1 37,557 osh-native
ex.compute-fib 29 0 1 2.4 7.9 584,155 31,810 12 50,000 0 2,833 osh-native
ex.bashcomp-parse-help 181 0 3 10.3 8.8 995,232 27,376 21 50,000 0 3,824 osh-native
ex.abuild-print-help 22 1 2 2.8 8.9 116,299 478 3 85,350 1 42,675 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 3 3 1.6 dash -
23 19 4 3.0 bash -
103 63 46 3.4 zsh -
16 16 0 27.9 bumpleak/osh mut
19 19 0 29.1 _bin/cxx-opt+bumproot/osh mut
22 22 0 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 25 4 24.9 osh-native mut+alloc
31 16 16 25.6 osh-native mut+alloc+free
35 31 4 17.8 osh-native mut+alloc+free+gc
36 24 12 18.0 osh-native mut+alloc+free+gc+exit
44 31 12 32.2 _bin/cxx-opt+nopool/osh mut+alloc
48 28 20 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
21 21 0 1.6 dash -
80 79 0 3.3 bash -
378 211 187 3.5 zsh -
49 45 4 84.8 bumpleak/osh mut
59 51 8 85.5 _bin/cxx-opt+bumproot/osh mut
70 61 8 86.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 68 28 73.4 osh-native mut+alloc
105 74 31 75.3 osh-native mut+alloc+free
146 118 28 49.9 osh-native mut+alloc+free+gc
155 122 33 50.7 osh-native mut+alloc+free+gc+exit
139 99 40 99.0 _bin/cxx-opt+nopool/osh mut+alloc
213 189 24 68.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 0 6 10.4 bumpleak/osh mut
7 7 0 11.4 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.8 osh-native mut+alloc
9 3 6 10.0 osh-native mut+alloc+free
9 9 0 8.3 osh-native mut+alloc+free+gc
10 6 3 8.7 osh-native mut+alloc+free+gc+exit
12 11 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 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.4 dash -
29 29 0 2.9 bash -
24 24 0 3.3 zsh -
19 11 7 31.3 bumpleak/osh mut
25 21 4 31.4 _bin/cxx-opt+bumproot/osh mut
29 18 11 31.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
38 26 11 26.1 osh-native mut+alloc
38 34 4 26.5 osh-native mut+alloc+free
29 28 0 7.9 osh-native mut+alloc+free+gc
28 24 4 7.7 osh-native mut+alloc+free+gc+exit
55 35 19 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
72 72 0 3.1 bash -
166 115 51 54.2 bumpleak/osh mut
178 149 28 56.1 _bin/cxx-opt+bumproot/osh mut
193 141 52 56.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
209 150 59 47.0 osh-native mut+alloc
216 142 73 48.7 osh-native mut+alloc+free
181 112 68 8.8 osh-native mut+alloc+free+gc
181 124 56 8.4 osh-native mut+alloc+free+gc+exit
232 136 96 63.8 _bin/cxx-opt+nopool/osh mut+alloc
209 166 43 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 7 3 3.4 dash -
20 9 11 4.5 bash -
18 9 10 3.4 zsh -
20 18 2 12.8 bumpleak/osh mut
19 14 6 12.3 _bin/cxx-opt+bumproot/osh mut
20 12 9 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 15 7 10.9 osh-native mut+alloc
23 16 7 11.0 osh-native mut+alloc+free
22 13 10 8.9 osh-native mut+alloc+free+gc
23 13 11 9.0 osh-native mut+alloc+free+gc+exit
25 24 2 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 18 7 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc