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 39 5 12 12.0 17.8 476,672 1,282 6 408,778 5 204,389 osh-native
parse.configure-cpython 34 4 10 12.0 17.6 476,672 1,282 6 408,648 5 204,324 osh-native-souffle
parse.configure-coreutils 170 27 82 46.1 51.7 1,653,260 4,764 12 1,069,144 6 798,653 osh-native
parse.configure-coreutils 163 25 86 41.0 45.4 1,653,259 4,764 12 1,591,700 7 795,850 osh-native-souffle
parse.abuild 10 1 1 2.6 8.5 101,863 180 2 75,120 1 37,560 osh-native
parse.abuild 10 1 2 2.4 8.0 101,863 180 3 87,216 1 43,608 osh-native-souffle
ex.compute-fib 28 0 2 2.4 8.0 584,131 22,608 12 50,000 0 2,837 osh-native
ex.compute-fib 22 0 2 2.4 7.6 584,131 22,608 12 50,000 0 2,776 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 10.3 8.9 995,205 12,911 21 50,000 0 3,831 osh-native
ex.bashcomp-parse-help 174 0 4 10.3 8.4 995,204 12,911 21 50,000 0 3,764 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,278 270 3 85,356 1 42,678 osh-native
ex.abuild-print-help 22 1 2 2.8 8.5 116,278 270 3 85,232 1 42,616 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.4 dash -
23 19 4 3.1 bash -
106 57 57 3.4 zsh -
17 17 0 29.5 bumpleak/osh mut
20 16 4 30.0 _bin/cxx-opt+bumproot/osh mut
23 15 8 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 30 0 25.0 osh-native mut+alloc
32 24 8 25.7 osh-native mut+alloc+free
39 31 8 17.8 osh-native mut+alloc+free+gc
40 27 12 18.1 osh-native mut+alloc+free+gc+exit
45 32 12 31.8 _bin/cxx-opt+nopool/osh mut+alloc
57 41 16 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
28 24 4 24.8 osh-native-souffle mut+alloc
29 29 0 25.4 osh-native-souffle mut+alloc+free
34 25 8 17.6 osh-native-souffle mut+alloc+free+gc
36 32 4 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
22 21 0 1.6 dash -
78 77 0 3.3 bash -
381 217 185 3.3 zsh -
50 45 4 85.2 bumpleak/osh mut
60 52 8 86.4 _bin/cxx-opt+bumproot/osh mut
69 45 24 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 40 56 73.6 osh-native mut+alloc
106 81 24 75.1 osh-native mut+alloc+free
170 150 20 51.7 osh-native mut+alloc+free+gc
178 166 12 52.1 osh-native mut+alloc+free+gc+exit
138 102 35 97.7 _bin/cxx-opt+nopool/osh mut+alloc
247 198 48 73.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 47 39 73.0 osh-native-souffle mut+alloc
96 76 20 75.0 osh-native-souffle mut+alloc+free
163 147 16 45.4 osh-native-souffle mut+alloc+free+gc
168 144 24 45.6 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.4 dash -
6 6 0 2.9 bash -
8 4 4 3.4 zsh -
7 3 3 11.0 bumpleak/osh mut
7 0 7 12.7 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.1 osh-native mut+alloc
9 3 6 10.1 osh-native mut+alloc+free
10 10 0 8.5 osh-native mut+alloc+free+gc
10 3 7 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.8 osh-native-souffle mut+alloc
9 9 0 9.7 osh-native-souffle mut+alloc+free
10 5 5 8.0 osh-native-souffle mut+alloc+free+gc
10 3 6 8.0 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
11 10 0 1.6 dash -
29 29 0 3.0 bash -
24 12 12 3.3 zsh -
19 19 0 32.9 bumpleak/osh mut
25 17 8 31.7 _bin/cxx-opt+bumproot/osh mut
28 20 8 33.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 24 12 26.3 osh-native mut+alloc
38 19 19 26.5 osh-native mut+alloc+free
28 27 0 8.0 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
54 37 16 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 19 11 26.0 osh-native-souffle mut+alloc
33 20 12 26.3 osh-native-souffle mut+alloc+free
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc
22 18 4 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
76 68 8 3.3 bash -
174 121 53 54.0 bumpleak/osh mut
184 139 44 56.0 _bin/cxx-opt+bumproot/osh mut
194 109 85 55.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 135 75 46.9 osh-native mut+alloc
221 162 59 48.8 osh-native mut+alloc+free
182 138 43 8.9 osh-native mut+alloc+free+gc
180 120 60 8.7 osh-native mut+alloc+free+gc+exit
237 158 79 63.6 _bin/cxx-opt+nopool/osh mut+alloc
216 163 52 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 146 57 46.5 osh-native-souffle mut+alloc
211 131 80 48.3 osh-native-souffle mut+alloc+free
174 109 65 8.4 osh-native-souffle mut+alloc+free+gc
175 111 64 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
10 7 3 3.4 dash -
20 16 5 4.3 bash -
19 11 8 3.4 zsh -
19 11 8 13.1 bumpleak/osh mut
21 11 11 13.2 _bin/cxx-opt+bumproot/osh mut
21 11 10 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 17 6 10.9 osh-native mut+alloc
23 21 3 11.1 osh-native mut+alloc+free
23 11 12 9.0 osh-native mut+alloc+free+gc
23 11 13 8.7 osh-native mut+alloc+free+gc+exit
26 24 2 12.7 _bin/cxx-opt+nopool/osh mut+alloc
27 18 9 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 13 8 10.6 osh-native-souffle mut+alloc
22 19 4 10.7 osh-native-souffle mut+alloc+free
22 20 3 8.5 osh-native-souffle mut+alloc+free+gc
23 10 13 8.7 osh-native-souffle mut+alloc+free+gc+exit