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,711 1,282 6 408,792 5 204,396 osh-native
parse.configure-cpython 33 3 9 12.0 17.4 476,711 1,282 6 408,662 5 204,331 osh-native-souffle
parse.configure-coreutils 157 25 70 44.6 50.0 1,653,299 4,764 12 1,030,676 6 769,422 osh-native
parse.configure-coreutils 148 27 70 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.4 101,902 180 2 75,134 1 37,567 osh-native
parse.abuild 8 1 1 2.6 8.1 101,902 180 2 75,004 1 37,502 osh-native-souffle
ex.compute-fib 28 0 2 2.4 8.0 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 177 0 3 10.3 8.8 995,244 12,911 21 50,000 0 3,834 osh-native
ex.bashcomp-parse-help 171 0 3 10.3 8.3 995,243 12,911 21 50,000 0 3,774 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.9 116,311 270 3 85,370 1 42,685 osh-native
ex.abuild-print-help 21 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 -
101 55 52 3.4 zsh -
16 10 6 28.6 bumpleak/osh mut
20 16 4 30.3 _bin/cxx-opt+bumproot/osh mut
23 18 5 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 19 10 25.2 osh-native mut+alloc
31 22 9 25.7 osh-native mut+alloc+free
35 29 6 18.0 osh-native mut+alloc+free+gc
36 30 6 18.0 osh-native mut+alloc+free+gc+exit
42 30 12 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 35 11 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 16 11 24.5 osh-native-souffle mut+alloc
28 16 12 25.3 osh-native-souffle mut+alloc+free
33 27 6 17.4 osh-native-souffle mut+alloc+free+gc
33 27 6 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.4 dash -
77 74 3 3.3 bash -
367 216 172 3.7 zsh -
50 41 9 84.1 bumpleak/osh mut
61 54 7 84.8 _bin/cxx-opt+bumproot/osh mut
69 57 12 86.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 65 32 73.4 osh-native mut+alloc
104 73 31 75.4 osh-native mut+alloc+free
157 141 16 50.0 osh-native mut+alloc+free+gc
162 137 25 50.7 osh-native mut+alloc+free+gc+exit
136 101 35 98.9 _bin/cxx-opt+nopool/osh mut+alloc
224 190 33 66.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 54 33 73.0 osh-native-souffle mut+alloc
95 67 29 75.1 osh-native-souffle mut+alloc+free
148 119 29 51.2 osh-native-souffle mut+alloc+free+gc
145 118 27 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.4 dash -
5 4 1 2.9 bash -
7 6 1 3.1 zsh -
6 3 3 11.9 bumpleak/osh mut
7 4 3 11.9 _bin/cxx-opt+bumproot/osh mut
7 3 4 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 10.0 osh-native mut+alloc
9 9 0 9.8 osh-native mut+alloc+free
9 6 3 8.4 osh-native mut+alloc+free+gc
9 7 2 8.7 osh-native mut+alloc+free+gc+exit
12 7 5 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 10 1 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.6 osh-native-souffle mut+alloc
8 5 3 9.7 osh-native-souffle mut+alloc+free
8 4 4 8.1 osh-native-souffle mut+alloc+free+gc
8 6 2 8.4 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 9 1 1.4 dash -
28 27 1 3.0 bash -
23 19 4 3.4 zsh -
18 14 4 31.0 bumpleak/osh mut
25 21 4 31.9 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 22 14 26.2 osh-native mut+alloc
37 24 13 26.5 osh-native mut+alloc+free
28 23 5 8.0 osh-native mut+alloc+free+gc
28 25 3 8.0 osh-native mut+alloc+free+gc+exit
51 33 19 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 34 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 20 10 26.0 osh-native-souffle mut+alloc
32 23 9 26.2 osh-native-souffle mut+alloc+free
22 20 2 7.5 osh-native-souffle mut+alloc+free+gc
22 20 2 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
74 70 4 3.1 bash -
163 109 55 55.2 bumpleak/osh mut
176 125 51 56.0 _bin/cxx-opt+bumproot/osh mut
189 122 67 55.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
208 154 53 47.0 osh-native mut+alloc
212 148 65 48.7 osh-native mut+alloc+free
177 118 59 8.8 osh-native mut+alloc+free+gc
177 122 55 8.7 osh-native mut+alloc+free+gc+exit
226 157 69 62.8 _bin/cxx-opt+nopool/osh mut+alloc
204 153 51 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
199 133 66 46.6 osh-native-souffle mut+alloc
205 151 54 48.2 osh-native-souffle mut+alloc+free
171 122 49 8.3 osh-native-souffle mut+alloc+free+gc
169 117 53 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 6 3.5 dash -
19 10 9 4.5 bash -
17 11 7 3.5 zsh -
19 9 10 12.4 bumpleak/osh mut
20 10 10 13.0 _bin/cxx-opt+bumproot/osh mut
21 9 12 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 9 12 11.0 osh-native mut+alloc
22 10 12 11.1 osh-native mut+alloc+free
22 14 9 8.9 osh-native mut+alloc+free+gc
22 11 12 8.9 osh-native mut+alloc+free+gc+exit
24 11 13 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 10 15 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 12 8 10.6 osh-native-souffle mut+alloc
21 7 14 10.6 osh-native-souffle mut+alloc+free
21 11 10 8.5 osh-native-souffle mut+alloc+free+gc
21 11 10 8.5 osh-native-souffle mut+alloc+free+gc+exit