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 4 10 12.0 18.0 476,711 1,282 6 408,792 5 204,396 osh-native
parse.configure-cpython 32 3 10 12.0 17.6 476,711 1,282 6 408,662 5 204,331 osh-native-souffle
parse.configure-coreutils 143 23 58 44.6 50.0 1,653,299 4,764 12 1,030,676 6 769,422 osh-native
parse.configure-coreutils 138 25 60 46.1 51.2 1,653,298 4,764 12 1,069,028 6 798,595 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,902 180 2 75,134 1 37,567 osh-native
parse.abuild 8 1 1 2.6 8.3 101,902 180 2 75,004 1 37,502 osh-native-souffle
ex.compute-fib 28 0 1 2.4 7.9 584,167 22,608 12 50,000 0 2,844 osh-native
ex.compute-fib 22 0 1 2.4 7.5 584,167 22,608 12 50,000 0 2,782 osh-native-souffle
ex.bashcomp-parse-help 176 0 3 10.3 8.8 995,244 12,911 21 50,000 0 3,834 osh-native
ex.bashcomp-parse-help 169 0 3 10.3 8.3 995,243 12,911 21 50,000 0 3,774 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 8.8 116,311 270 3 85,370 1 42,685 osh-native
ex.abuild-print-help 20 1 2 2.8 8.5 116,311 270 3 85,246 1 42,623 osh-native-souffle

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 22 1 3.1 bash -
100 59 47 3.4 zsh -
16 10 6 29.6 bumpleak/osh mut
19 15 4 29.8 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 24 6 25.0 osh-native mut+alloc
31 20 11 25.4 osh-native mut+alloc+free
35 26 9 18.0 osh-native mut+alloc+free+gc
36 28 8 17.8 osh-native mut+alloc+free+gc+exit
42 30 12 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 41 6 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 16 11 24.8 osh-native-souffle mut+alloc
28 20 9 25.3 osh-native-souffle mut+alloc+free
32 24 8 17.6 osh-native-souffle mut+alloc+free+gc
33 27 6 17.7 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 -
78 75 3 3.3 bash -
364 191 193 3.5 zsh -
48 39 9 85.7 bumpleak/osh mut
59 49 10 84.9 _bin/cxx-opt+bumproot/osh mut
73 66 7 86.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 62 34 73.3 osh-native mut+alloc
106 63 43 75.3 osh-native mut+alloc+free
143 124 19 50.0 osh-native mut+alloc+free+gc
151 123 28 50.6 osh-native mut+alloc+free+gc+exit
137 91 46 98.9 _bin/cxx-opt+nopool/osh mut+alloc
204 175 28 66.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 63 25 73.3 osh-native-souffle mut+alloc
96 67 29 74.9 osh-native-souffle mut+alloc+free
138 120 17 51.2 osh-native-souffle mut+alloc+free+gc
146 123 23 51.7 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.4 dash -
5 4 1 2.9 bash -
7 4 3 3.3 zsh -
6 6 0 10.7 bumpleak/osh mut
7 6 1 11.9 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 4 9.8 osh-native mut+alloc
8 4 4 10.1 osh-native mut+alloc+free
9 6 3 8.7 osh-native mut+alloc+free+gc
9 5 4 8.8 osh-native mut+alloc+free+gc+exit
12 3 9 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 7 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 3 5 9.7 osh-native-souffle mut+alloc
8 5 3 9.6 osh-native-souffle mut+alloc+free
8 3 5 8.3 osh-native-souffle mut+alloc+free+gc
8 5 3 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 3.0 bash -
23 21 2 3.1 zsh -
19 15 4 32.4 bumpleak/osh mut
26 23 3 32.8 _bin/cxx-opt+bumproot/osh mut
29 25 4 31.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.3 osh-native mut+alloc
37 25 12 26.5 osh-native mut+alloc+free
28 23 5 7.9 osh-native mut+alloc+free+gc
28 23 5 7.9 osh-native mut+alloc+free+gc+exit
52 43 9 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 20 10 25.8 osh-native-souffle mut+alloc
32 27 5 26.0 osh-native-souffle mut+alloc+free
22 19 3 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
72 67 5 3.1 bash -
163 106 58 53.8 bumpleak/osh mut
173 127 46 55.1 _bin/cxx-opt+bumproot/osh mut
190 134 56 55.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
204 140 64 47.0 osh-native mut+alloc
213 137 76 48.7 osh-native mut+alloc+free
176 130 46 8.8 osh-native mut+alloc+free+gc
176 124 52 8.7 osh-native mut+alloc+free+gc+exit
226 157 69 62.7 _bin/cxx-opt+nopool/osh mut+alloc
204 154 49 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
198 126 71 46.6 osh-native-souffle mut+alloc
206 139 67 48.3 osh-native-souffle mut+alloc+free
169 108 61 8.3 osh-native-souffle mut+alloc+free+gc
170 111 59 8.3 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 5 3.4 dash -
20 10 11 4.3 bash -
16 9 8 3.5 zsh -
20 8 13 12.8 bumpleak/osh mut
19 9 10 12.1 _bin/cxx-opt+bumproot/osh mut
20 10 10 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 9 12 11.0 osh-native mut+alloc
21 11 10 11.0 osh-native mut+alloc+free
21 13 9 8.8 osh-native mut+alloc+free+gc
22 12 10 9.0 osh-native mut+alloc+free+gc+exit
24 15 9 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 16 8 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 11 9 10.6 osh-native-souffle mut+alloc
20 10 11 10.7 osh-native-souffle mut+alloc+free
20 9 11 8.5 osh-native-souffle mut+alloc+free+gc
21 9 12 8.7 osh-native-souffle mut+alloc+free+gc+exit