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 36 4 10 12.0 17.6 476,685 1,282 6 408,756 5 204,378 osh-native
parse.configure-coreutils 149 24 61 46.1 51.4 1,653,273 4,764 12 1,069,122 6 798,642 osh-native
parse.abuild 9 1 1 2.6 8.5 101,876 180 2 75,098 1 37,549 osh-native
ex.compute-fib 28 0 1 2.6 7.9 584,141 31,810 12 50,000 0 2,826 osh-native
ex.bashcomp-parse-help 179 0 3 10.6 8.7 995,218 27,376 21 50,000 0 3,821 osh-native
ex.abuild-print-help 22 1 2 2.8 8.9 116,285 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.4 dash -
23 18 5 3.0 bash -
106 74 38 3.4 zsh -
16 8 8 28.9 bumpleak/osh mut
20 12 8 28.9 _bin/cxx-opt+bumproot/osh mut
22 22 0 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.0 osh-native mut+alloc
32 24 8 25.6 osh-native mut+alloc+free
36 32 4 17.6 osh-native mut+alloc+free+gc
37 29 8 18.0 osh-native mut+alloc+free+gc+exit
43 23 19 32.0 _bin/cxx-opt+nopool/osh mut+alloc
50 34 15 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 18 4 1.6 dash -
78 77 0 3.3 bash -
378 224 175 3.5 zsh -
56 47 8 84.2 bumpleak/osh mut
62 53 8 85.1 _bin/cxx-opt+bumproot/osh mut
70 57 12 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 77 20 73.3 osh-native mut+alloc
106 93 12 75.3 osh-native mut+alloc+free
149 126 24 51.4 osh-native mut+alloc+free+gc
153 124 28 52.2 osh-native mut+alloc+free+gc+exit
140 92 48 98.3 _bin/cxx-opt+nopool/osh mut+alloc
210 182 28 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
2 0 2 1.4 dash -
6 6 0 2.9 bash -
8 8 0 3.1 zsh -
6 3 3 11.1 bumpleak/osh mut
7 6 0 10.9 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 3 6 10.0 osh-native mut+alloc
8 8 0 10.1 osh-native mut+alloc+free
9 3 6 8.5 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
11 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 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
10 10 0 1.6 dash -
29 29 0 3.0 bash -
24 20 4 3.4 zsh -
19 19 0 31.6 bumpleak/osh mut
27 19 8 32.5 _bin/cxx-opt+bumproot/osh mut
28 23 4 32.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 22 15 26.5 osh-native mut+alloc
38 26 11 26.6 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
28 20 8 8.0 osh-native mut+alloc+free+gc+exit
54 38 15 36.3 _bin/cxx-opt+nopool/osh mut+alloc
38 34 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
72 72 0 3.0 bash -
168 136 32 54.7 bumpleak/osh mut
180 136 44 55.5 _bin/cxx-opt+bumproot/osh mut
194 129 65 56.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 143 67 46.9 osh-native mut+alloc
217 165 51 48.9 osh-native mut+alloc+free
179 143 36 8.7 osh-native mut+alloc+free+gc
180 144 36 8.7 osh-native mut+alloc+free+gc+exit
235 163 72 62.6 _bin/cxx-opt+nopool/osh mut+alloc
208 142 65 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 5 6 3.5 dash -
19 12 8 4.3 bash -
18 7 11 3.5 zsh -
18 17 2 13.3 bumpleak/osh mut
20 11 9 13.6 _bin/cxx-opt+bumproot/osh mut
23 9 14 13.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 11 11 10.9 osh-native mut+alloc
22 16 7 10.7 osh-native mut+alloc+free
22 13 10 8.9 osh-native mut+alloc+free+gc
23 23 0 8.9 osh-native mut+alloc+free+gc+exit
25 14 11 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 20 6 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc