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 38 5 12 12.0 17.8 476,760 1,282 6 406,606 5 203,303 osh-native
parse.configure-cpython 34 5 11 12.0 17.4 476,760 1,282 6 406,322 5 203,161 osh-native-souffle
parse.configure-coreutils 166 27 80 44.5 49.8 1,653,348 4,764 12 1,025,528 6 764,307 osh-native
parse.configure-coreutils 156 27 77 44.5 49.4 1,653,347 4,764 12 1,025,518 6 764,302 osh-native-souffle
parse.abuild 10 1 2 2.6 8.5 101,951 180 2 75,032 1 37,516 osh-native
parse.abuild 8 1 1 2.6 8.4 101,951 180 2 75,022 1 37,511 osh-native-souffle
ex.compute-fib 28 0 2 2.2 8.0 579,715 22,608 12 50,000 0 2,920 osh-native
ex.compute-fib 22 0 1 2.2 7.5 579,715 22,608 12 50,000 0 2,915 osh-native-souffle
ex.bashcomp-parse-help 186 0 4 11.1 8.8 1,021,030 15,258 22 50,000 0 3,909 osh-native
ex.bashcomp-parse-help 174 0 4 11.1 8.3 1,021,029 15,258 22 50,000 0 3,914 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,334 277 3 85,250 1 42,625 osh-native
ex.abuild-print-help 21 1 2 2.8 8.5 116,334 277 3 85,240 1 42,620 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.6 dash -
24 23 1 3.1 bash -
102 50 58 3.5 zsh -
17 12 5 29.7 bumpleak/osh mut
20 14 6 30.3 _bin/cxx-opt+bumproot/osh mut
24 20 4 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.2 osh-native mut+alloc
32 22 10 25.7 osh-native mut+alloc+free
38 32 5 17.8 osh-native mut+alloc+free+gc
40 33 7 18.1 osh-native mut+alloc+free+gc+exit
42 31 11 32.4 _bin/cxx-opt+nopool/osh mut+alloc
57 47 10 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
28 16 12 24.8 osh-native-souffle mut+alloc
30 13 17 25.3 osh-native-souffle mut+alloc+free
34 27 7 17.4 osh-native-souffle mut+alloc+free+gc
39 32 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.4 dash -
78 77 1 3.1 bash -
364 196 189 3.7 zsh -
48 39 9 85.4 bumpleak/osh mut
60 54 6 86.0 _bin/cxx-opt+bumproot/osh mut
72 54 18 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 63 35 73.5 osh-native mut+alloc
105 71 34 75.4 osh-native mut+alloc+free
166 140 26 49.8 osh-native mut+alloc+free+gc
169 147 22 50.5 osh-native mut+alloc+free+gc+exit
137 94 43 99.0 _bin/cxx-opt+nopool/osh mut+alloc
221 198 22 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 60 27 73.1 osh-native-souffle mut+alloc
95 67 29 75.0 osh-native-souffle mut+alloc+free
156 134 22 49.4 osh-native-souffle mut+alloc+free+gc
167 140 27 50.1 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 -
6 4 2 3.0 bash -
7 4 3 3.1 zsh -
6 3 3 11.4 bumpleak/osh mut
7 4 2 12.4 _bin/cxx-opt+bumproot/osh mut
8 5 3 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 5 4 10.1 osh-native mut+alloc
9 6 3 10.2 osh-native mut+alloc+free
10 8 2 8.5 osh-native mut+alloc+free+gc
9 6 4 8.5 osh-native mut+alloc+free+gc+exit
12 6 6 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 10 2 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 6 2 9.7 osh-native-souffle mut+alloc
8 5 3 9.7 osh-native-souffle mut+alloc+free
8 6 3 8.4 osh-native-souffle mut+alloc+free+gc
9 5 4 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 8 2 1.4 dash -
29 27 2 3.0 bash -
23 18 5 3.3 zsh -
19 16 3 32.4 bumpleak/osh mut
26 21 5 32.2 _bin/cxx-opt+bumproot/osh mut
27 25 2 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 25 12 26.5 osh-native mut+alloc
39 28 11 26.7 osh-native mut+alloc+free
28 25 4 8.0 osh-native mut+alloc+free+gc
29 26 3 8.1 osh-native mut+alloc+free+gc+exit
54 38 16 35.8 _bin/cxx-opt+nopool/osh mut+alloc
38 34 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 22 8 25.8 osh-native-souffle mut+alloc
31 18 13 26.2 osh-native-souffle mut+alloc+free
22 18 4 7.5 osh-native-souffle mut+alloc+free+gc
22 21 1 7.7 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 71 2 3.1 bash -
167 118 49 56.4 bumpleak/osh mut
182 116 65 58.1 _bin/cxx-opt+bumproot/osh mut
197 123 74 57.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
215 146 70 48.8 osh-native mut+alloc
223 144 79 50.9 osh-native mut+alloc+free
186 136 50 8.8 osh-native mut+alloc+free+gc
187 129 57 8.8 osh-native mut+alloc+free+gc+exit
235 144 91 64.5 _bin/cxx-opt+nopool/osh mut+alloc
215 161 54 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
207 134 73 48.6 osh-native-souffle mut+alloc
216 146 70 50.1 osh-native-souffle mut+alloc+free
174 133 41 8.3 osh-native-souffle mut+alloc+free+gc
175 131 45 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 5 5 3.5 dash -
19 9 10 4.5 bash -
17 6 11 3.4 zsh -
20 5 15 12.6 bumpleak/osh mut
21 7 14 13.1 _bin/cxx-opt+bumproot/osh mut
20 11 9 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 13 9 11.1 osh-native mut+alloc
22 10 13 11.1 osh-native mut+alloc+free
22 9 14 9.0 osh-native mut+alloc+free+gc
23 12 11 8.9 osh-native mut+alloc+free+gc+exit
25 10 16 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 14 12 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 13 8 10.6 osh-native-souffle mut+alloc
21 10 12 10.7 osh-native-souffle mut+alloc+free
21 11 10 8.5 osh-native-souffle mut+alloc+free+gc
22 12 10 8.7 osh-native-souffle mut+alloc+free+gc+exit