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 37 4 11 12.0 17.7 476,723 1,282 6 408,812 5 204,406 osh-native
parse.configure-cpython 33 4 10 12.0 17.4 476,723 1,282 6 408,682 5 204,341 osh-native-souffle
parse.configure-coreutils 148 24 63 44.7 49.9 1,653,311 4,764 12 1,030,938 6 769,606 osh-native
parse.configure-coreutils 132 22 56 46.1 51.1 1,653,310 4,764 12 1,069,048 6 798,605 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,914 180 2 75,154 1 37,577 osh-native
parse.abuild 8 1 1 2.6 8.1 101,914 180 2 75,024 1 37,512 osh-native-souffle
ex.compute-fib 28 0 2 2.4 7.9 584,179 22,608 12 50,000 0 2,854 osh-native
ex.compute-fib 22 0 1 2.4 7.5 584,179 22,608 12 50,000 0 2,792 osh-native-souffle
ex.bashcomp-parse-help 177 0 4 10.3 8.7 995,256 12,911 21 50,000 0 3,844 osh-native
ex.bashcomp-parse-help 169 0 3 10.3 8.3 995,255 12,911 21 50,000 0 3,784 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.9 116,323 270 3 85,390 1 42,695 osh-native
ex.abuild-print-help 20 1 2 2.8 8.4 116,323 270 3 85,266 1 42,633 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 6 1 1.6 dash -
23 22 1 3.0 bash -
101 56 52 3.4 zsh -
16 13 3 29.5 bumpleak/osh mut
19 16 3 29.0 _bin/cxx-opt+bumproot/osh mut
22 18 4 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 17 12 25.2 osh-native mut+alloc
31 22 9 25.6 osh-native mut+alloc+free
37 28 9 17.7 osh-native mut+alloc+free+gc
44 39 5 18.0 osh-native mut+alloc+free+gc+exit
43 28 14 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 39 8 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 19 7 24.9 osh-native-souffle mut+alloc
28 14 14 25.2 osh-native-souffle mut+alloc+free
33 27 6 17.4 osh-native-souffle mut+alloc+free+gc
33 28 5 17.6 osh-native-souffle mut+alloc+free+gc+exit

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 -
77 76 1 3.3 bash -
359 194 186 3.5 zsh -
48 39 9 85.8 bumpleak/osh mut
59 51 8 85.9 _bin/cxx-opt+bumproot/osh mut
70 60 10 86.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
95 63 32 73.6 osh-native mut+alloc
105 77 28 75.3 osh-native mut+alloc+free
148 125 23 49.9 osh-native mut+alloc+free+gc
151 130 21 50.7 osh-native mut+alloc+free+gc+exit
137 96 41 98.8 _bin/cxx-opt+nopool/osh mut+alloc
206 180 26 66.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
91 62 29 73.2 osh-native-souffle mut+alloc
96 64 32 75.0 osh-native-souffle mut+alloc+free
132 110 22 51.1 osh-native-souffle mut+alloc+free+gc
139 117 22 52.0 osh-native-souffle mut+alloc+free+gc+exit

parse.abuild

Parsing abuild from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
2 1 1 1.3 dash -
5 5 0 2.9 bash -
7 4 3 3.3 zsh -
6 4 2 11.5 bumpleak/osh mut
7 5 2 11.8 _bin/cxx-opt+bumproot/osh mut
7 5 3 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.2 osh-native mut+alloc
8 5 3 10.1 osh-native mut+alloc+free
9 5 5 8.7 osh-native mut+alloc+free+gc
9 5 4 8.5 osh-native mut+alloc+free+gc+exit
12 9 2 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 4 4 9.6 osh-native-souffle mut+alloc
8 3 4 9.7 osh-native-souffle mut+alloc+free
8 6 2 8.1 osh-native-souffle mut+alloc+free+gc
9 5 4 8.3 osh-native-souffle mut+alloc+free+gc+exit

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 28 1 2.8 bash -
23 17 6 3.3 zsh -
19 13 7 31.2 bumpleak/osh mut
25 23 3 33.1 _bin/cxx-opt+bumproot/osh mut
27 25 2 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 23 13 26.3 osh-native mut+alloc
37 26 10 26.6 osh-native mut+alloc+free
28 27 1 7.9 osh-native mut+alloc+free+gc
27 22 6 7.9 osh-native mut+alloc+free+gc+exit
52 36 16 36.0 _bin/cxx-opt+nopool/osh mut+alloc
38 32 5 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 20 9 25.8 osh-native-souffle mut+alloc
31 23 8 26.2 osh-native-souffle mut+alloc+free
22 21 1 7.5 osh-native-souffle mut+alloc+free+gc
22 21 1 7.5 osh-native-souffle mut+alloc+free+gc+exit

ex.bashcomp-parse-help

A realistic bash-completion workload.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
81 72 9 3.1 bash -
180 123 57 54.2 bumpleak/osh mut
200 132 68 55.2 _bin/cxx-opt+bumproot/osh mut
217 155 62 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
207 133 74 47.0 osh-native mut+alloc
214 154 60 48.8 osh-native mut+alloc+free
177 129 48 8.7 osh-native mut+alloc+free+gc
176 126 50 8.7 osh-native mut+alloc+free+gc+exit
255 163 92 62.8 _bin/cxx-opt+nopool/osh mut+alloc
233 180 53 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
199 133 66 46.6 osh-native-souffle mut+alloc
204 134 70 48.3 osh-native-souffle mut+alloc+free
169 121 48 8.3 osh-native-souffle mut+alloc+free+gc
169 122 47 8.4 osh-native-souffle mut+alloc+free+gc+exit

ex.abuild-print-help

Running abuild -h from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
9 4 6 3.5 dash -
19 11 8 4.5 bash -
17 9 8 3.4 zsh -
19 6 14 12.1 bumpleak/osh mut
20 8 12 12.6 _bin/cxx-opt+bumproot/osh mut
19 11 9 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 9 12 11.0 osh-native mut+alloc
21 10 11 11.1 osh-native mut+alloc+free
22 13 9 8.9 osh-native mut+alloc+free+gc
22 13 10 8.8 osh-native mut+alloc+free+gc+exit
24 12 12 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 14 11 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 6 14 10.5 osh-native-souffle mut+alloc
20 7 13 10.6 osh-native-souffle mut+alloc+free
20 12 9 8.4 osh-native-souffle mut+alloc+free+gc
21 12 9 8.5 osh-native-souffle mut+alloc+free+gc+exit