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 10 12.0 18.0 476,672 1,282 6 408,778 5 204,389 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,672 1,282 6 408,648 5 204,324 osh-native-souffle
parse.configure-coreutils 174 28 84 46.1 51.6 1,653,260 4,764 12 1,069,144 6 798,653 osh-native
parse.configure-coreutils 176 27 98 41.0 45.5 1,653,259 4,764 12 1,591,700 7 795,850 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,863 180 2 75,120 1 37,560 osh-native
parse.abuild 9 1 2 2.4 7.9 101,863 180 3 87,216 1 43,608 osh-native-souffle
ex.compute-fib 28 0 2 2.4 7.7 584,131 22,608 12 50,000 0 2,837 osh-native
ex.compute-fib 21 0 1 2.4 7.5 584,131 22,608 12 50,000 0 2,776 osh-native-souffle
ex.bashcomp-parse-help 181 0 3 10.3 8.8 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 8.9 116,278 270 3 85,356 1 42,678 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 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 -
24 23 0 3.0 bash -
105 61 50 3.3 zsh -
16 8 8 27.9 bumpleak/osh mut
20 16 4 29.6 _bin/cxx-opt+bumproot/osh mut
23 22 0 29.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 19 11 25.0 osh-native mut+alloc
33 16 16 25.6 osh-native mut+alloc+free
37 26 11 18.0 osh-native mut+alloc+free+gc
37 29 8 18.0 osh-native mut+alloc+free+gc+exit
44 26 17 32.9 _bin/cxx-opt+nopool/osh mut+alloc
50 38 11 22.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 22 4 24.8 osh-native-souffle mut+alloc
30 11 18 25.2 osh-native-souffle mut+alloc+free
32 20 12 17.4 osh-native-souffle mut+alloc+free+gc
34 26 7 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
22 22 0 1.6 dash -
77 74 4 3.1 bash -
379 200 200 3.4 zsh -
49 37 11 85.7 bumpleak/osh mut
60 48 12 84.5 _bin/cxx-opt+bumproot/osh mut
69 65 4 85.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 61 36 73.4 osh-native mut+alloc
107 75 32 75.1 osh-native mut+alloc+free
174 154 20 51.6 osh-native mut+alloc+free+gc
182 150 32 52.2 osh-native mut+alloc+free+gc+exit
141 96 44 98.7 _bin/cxx-opt+nopool/osh mut+alloc
237 209 28 71.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 60 28 73.2 osh-native-souffle mut+alloc
97 68 28 74.9 osh-native-souffle mut+alloc+free
176 152 24 45.5 osh-native-souffle mut+alloc+free+gc
174 150 24 45.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 0 2 1.3 dash -
6 6 0 3.0 bash -
8 4 4 3.3 zsh -
6 6 0 12.1 bumpleak/osh mut
6 6 0 12.1 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 3 6 10.1 osh-native mut+alloc
9 0 9 10.0 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.8 osh-native-souffle mut+alloc
8 3 5 9.7 osh-native-souffle mut+alloc+free
9 4 4 7.9 osh-native-souffle mut+alloc+free+gc
9 5 5 8.1 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 0 2.9 bash -
23 20 4 3.4 zsh -
19 11 7 32.5 bumpleak/osh mut
25 21 4 32.0 _bin/cxx-opt+bumproot/osh mut
28 28 0 31.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
38 27 11 26.3 osh-native mut+alloc
39 30 9 26.5 osh-native mut+alloc+free
28 28 0 7.7 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
54 42 13 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 32 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
32 12 20 26.0 osh-native-souffle mut+alloc
32 16 16 26.1 osh-native-souffle mut+alloc+free
21 17 4 7.5 osh-native-souffle mut+alloc+free+gc
22 22 0 7.6 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 66 8 3.1 bash -
171 123 47 55.6 bumpleak/osh mut
184 112 72 55.6 _bin/cxx-opt+bumproot/osh mut
193 138 55 56.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 119 91 47.0 osh-native mut+alloc
220 116 104 48.7 osh-native mut+alloc+free
181 122 59 8.8 osh-native mut+alloc+free+gc
182 114 67 8.8 osh-native mut+alloc+free+gc+exit
232 164 68 63.3 _bin/cxx-opt+nopool/osh mut+alloc
215 158 57 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 147 56 46.5 osh-native-souffle mut+alloc
213 141 71 48.3 osh-native-souffle mut+alloc+free
174 117 57 8.4 osh-native-souffle mut+alloc+free+gc
173 125 48 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 10 0 3.4 dash -
20 14 7 4.5 bash -
18 16 3 3.4 zsh -
18 13 6 11.2 bumpleak/osh mut
20 15 5 12.6 _bin/cxx-opt+bumproot/osh mut
20 11 9 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 15 7 11.1 osh-native mut+alloc
23 21 2 10.9 osh-native mut+alloc+free
23 10 13 8.9 osh-native mut+alloc+free+gc
23 20 3 8.9 osh-native mut+alloc+free+gc+exit
25 16 9 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 24 1 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 12 9 10.5 osh-native-souffle mut+alloc
21 18 4 10.7 osh-native-souffle mut+alloc+free
21 9 13 8.7 osh-native-souffle mut+alloc+free+gc
22 19 3 8.7 osh-native-souffle mut+alloc+free+gc+exit