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,711 1,282 6 408,792 5 204,396 osh-native
parse.configure-cpython 33 4 10 12.0 17.4 476,711 1,282 6 408,662 5 204,331 osh-native-souffle
parse.configure-coreutils 140 22 55 44.6 50.0 1,653,299 4,764 12 1,030,676 6 769,422 osh-native
parse.configure-coreutils 136 23 61 46.1 51.1 1,653,298 4,764 12 1,069,028 6 798,595 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 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 34 0 1 2.4 7.9 584,167 22,608 12 50,000 0 2,844 osh-native
ex.compute-fib 22 0 2 2.4 7.3 584,167 22,608 12 50,000 0 2,782 osh-native-souffle
ex.bashcomp-parse-help 178 0 3 10.3 8.8 995,244 12,911 21 50,000 0 3,834 osh-native
ex.bashcomp-parse-help 171 0 4 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.9 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 5 1 1.4 dash -
23 21 2 3.0 bash -
101 58 50 3.3 zsh -
16 12 4 28.6 bumpleak/osh mut
19 15 4 29.8 _bin/cxx-opt+bumproot/osh mut
22 16 6 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 23 6 25.2 osh-native mut+alloc
31 21 10 25.4 osh-native mut+alloc+free
35 31 4 17.8 osh-native mut+alloc+free+gc
36 26 10 18.0 osh-native mut+alloc+free+gc+exit
42 27 15 32.4 _bin/cxx-opt+nopool/osh mut+alloc
46 37 10 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 17 9 24.8 osh-native-souffle mut+alloc
28 18 10 25.2 osh-native-souffle mut+alloc+free
33 26 7 17.4 osh-native-souffle mut+alloc+free+gc
34 23 10 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 19 2 1.6 dash -
77 75 2 3.3 bash -
368 186 203 3.5 zsh -
48 40 8 83.8 bumpleak/osh mut
60 51 9 84.7 _bin/cxx-opt+bumproot/osh mut
70 50 20 84.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 67 29 73.3 osh-native mut+alloc
104 73 31 75.3 osh-native mut+alloc+free
140 122 18 50.0 osh-native mut+alloc+free+gc
147 124 23 50.6 osh-native mut+alloc+free+gc+exit
135 97 38 99.0 _bin/cxx-opt+nopool/osh mut+alloc
196 165 31 66.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 55 30 73.0 osh-native-souffle mut+alloc
94 59 34 74.9 osh-native-souffle mut+alloc+free
136 111 25 51.1 osh-native-souffle mut+alloc+free+gc
148 124 24 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 2 0 1.3 dash -
5 4 1 3.0 bash -
7 5 2 3.1 zsh -
6 4 2 12.1 bumpleak/osh mut
6 4 3 10.7 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.2 osh-native mut+alloc
8 6 2 10.1 osh-native mut+alloc+free
9 7 2 8.5 osh-native mut+alloc+free+gc
9 5 4 8.7 osh-native mut+alloc+free+gc+exit
11 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 10 1 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 5 2 9.7 osh-native-souffle mut+alloc
9 4 5 9.7 osh-native-souffle mut+alloc+free
8 4 4 8.1 osh-native-souffle mut+alloc+free+gc
8 5 3 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 10 0 1.6 dash -
28 25 3 3.0 bash -
23 14 9 3.3 zsh -
19 13 5 31.1 bumpleak/osh mut
25 21 4 31.6 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
35 28 7 26.2 osh-native mut+alloc
36 29 7 26.5 osh-native mut+alloc+free
34 32 2 7.9 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
52 33 19 35.7 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 25.8 osh-native-souffle mut+alloc
32 22 10 26.2 osh-native-souffle mut+alloc+free
22 20 2 7.3 osh-native-souffle mut+alloc+free+gc
23 21 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
73 69 4 3.1 bash -
164 103 61 55.1 bumpleak/osh mut
175 134 41 56.0 _bin/cxx-opt+bumproot/osh mut
190 115 75 55.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
206 140 67 47.0 osh-native mut+alloc
212 137 75 48.7 osh-native mut+alloc+free
178 123 55 8.8 osh-native mut+alloc+free+gc
177 125 52 8.8 osh-native mut+alloc+free+gc+exit
227 151 76 62.8 _bin/cxx-opt+nopool/osh mut+alloc
206 157 49 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
197 137 60 46.6 osh-native-souffle mut+alloc
205 128 77 48.3 osh-native-souffle mut+alloc+free
171 122 49 8.3 osh-native-souffle mut+alloc+free+gc
171 114 57 8.1 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.5 dash -
19 11 8 4.5 bash -
17 8 10 3.5 zsh -
19 7 12 12.6 bumpleak/osh mut
19 8 11 12.5 _bin/cxx-opt+bumproot/osh mut
19 12 8 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 10 10 10.9 osh-native mut+alloc
21 12 10 11.1 osh-native mut+alloc+free
21 14 8 8.9 osh-native mut+alloc+free+gc
22 14 9 9.0 osh-native mut+alloc+free+gc+exit
24 13 12 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 15 10 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 8 11 10.6 osh-native-souffle mut+alloc
20 9 12 10.5 osh-native-souffle mut+alloc+free
20 10 11 8.5 osh-native-souffle mut+alloc+free+gc
21 11 11 8.5 osh-native-souffle mut+alloc+free+gc+exit