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.1 18.0 476,742 1,282 6 409,294 5 204,647 osh-native
parse.configure-cpython 33 4 10 12.0 17.7 476,742 1,282 6 408,794 5 204,397 osh-native-souffle
parse.configure-coreutils 163 23 78 41.1 45.9 1,653,330 4,764 12 1,591,976 7 795,988 osh-native
parse.configure-coreutils 147 27 71 44.6 49.7 1,653,329 4,764 12 1,030,678 6 769,423 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,933 180 2 75,266 1 37,633 osh-native
parse.abuild 8 1 1 2.6 8.3 101,933 180 2 75,136 1 37,568 osh-native-souffle
ex.compute-fib 27 0 1 2.1 8.0 579,597 22,608 12 50,000 0 2,910 osh-native
ex.compute-fib 21 0 2 2.1 7.5 579,597 22,608 12 50,000 0 2,848 osh-native-souffle
ex.bashcomp-parse-help 180 0 3 10.3 8.7 995,279 15,258 21 50,000 0 3,893 osh-native
ex.bashcomp-parse-help 175 0 4 10.3 8.4 995,278 15,258 21 50,000 0 3,838 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,309 277 3 85,502 1 42,751 osh-native
ex.abuild-print-help 21 1 2 2.8 8.5 116,309 277 3 85,378 1 42,689 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 3 3 1.6 dash -
23 23 0 3.0 bash -
105 66 45 3.3 zsh -
17 10 7 29.7 bumpleak/osh mut
19 19 0 29.0 _bin/cxx-opt+bumproot/osh mut
22 18 4 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 25 4 25.2 osh-native mut+alloc
32 16 16 25.7 osh-native mut+alloc+free
35 31 4 18.0 osh-native mut+alloc+free+gc
36 32 4 18.1 osh-native mut+alloc+free+gc+exit
43 27 16 33.0 _bin/cxx-opt+nopool/osh mut+alloc
49 42 8 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 11 15 24.9 osh-native-souffle mut+alloc
29 14 14 25.2 osh-native-souffle mut+alloc+free
33 26 7 17.7 osh-native-souffle mut+alloc+free+gc
34 23 11 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.6 dash -
78 74 4 3.1 bash -
378 203 197 3.5 zsh -
49 45 4 85.3 bumpleak/osh mut
59 47 12 85.6 _bin/cxx-opt+bumproot/osh mut
69 57 12 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 57 41 73.6 osh-native mut+alloc
105 61 44 75.4 osh-native mut+alloc+free
163 147 16 45.9 osh-native mut+alloc+free+gc
168 148 20 46.1 osh-native mut+alloc+free+gc+exit
138 85 53 99.2 _bin/cxx-opt+nopool/osh mut+alloc
247 223 24 61.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 64 24 73.0 osh-native-souffle mut+alloc
96 60 36 75.0 osh-native-souffle mut+alloc+free
147 127 20 49.7 osh-native-souffle mut+alloc+free+gc
150 142 8 50.3 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 -
6 0 6 10.4 bumpleak/osh mut
7 0 7 11.8 _bin/cxx-opt+bumproot/osh mut
7 0 7 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.1 osh-native mut+alloc
9 5 5 10.1 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 9 0 8.8 osh-native mut+alloc+free+gc+exit
12 12 0 11.4 _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 4 4 9.7 osh-native-souffle mut+alloc+free
8 4 4 8.3 osh-native-souffle mut+alloc+free+gc
9 4 4 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 -
29 29 0 2.9 bash -
24 16 8 3.4 zsh -
18 18 0 31.6 bumpleak/osh mut
25 21 4 31.9 _bin/cxx-opt+bumproot/osh mut
28 20 8 31.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 22 13 25.8 osh-native mut+alloc
36 24 12 26.3 osh-native mut+alloc+free
27 23 4 8.0 osh-native mut+alloc+free+gc
27 23 4 8.0 osh-native mut+alloc+free+gc+exit
53 34 19 35.7 _bin/cxx-opt+nopool/osh mut+alloc
37 32 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 17 12 25.6 osh-native-souffle mut+alloc
31 19 11 25.7 osh-native-souffle mut+alloc+free
21 17 4 7.5 osh-native-souffle mut+alloc+free+gc
21 21 0 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 69 4 3.3 bash -
167 126 41 54.7 bumpleak/osh mut
179 135 44 55.9 _bin/cxx-opt+bumproot/osh mut
194 145 48 55.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 148 64 47.1 osh-native mut+alloc
217 165 52 48.8 osh-native mut+alloc+free
180 112 68 8.7 osh-native mut+alloc+free+gc
180 128 52 8.8 osh-native mut+alloc+free+gc+exit
236 132 104 64.4 _bin/cxx-opt+nopool/osh mut+alloc
212 140 72 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 152 52 46.6 osh-native-souffle mut+alloc
210 131 79 48.3 osh-native-souffle mut+alloc+free
175 123 52 8.4 osh-native-souffle mut+alloc+free+gc
174 142 32 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 8 2 3.4 dash -
20 15 5 4.5 bash -
18 16 3 3.4 zsh -
18 13 5 12.0 bumpleak/osh mut
20 14 7 12.7 _bin/cxx-opt+bumproot/osh mut
20 13 7 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 13 9 11.0 osh-native mut+alloc
22 19 3 11.3 osh-native mut+alloc+free
22 11 11 9.2 osh-native mut+alloc+free+gc
22 14 9 9.0 osh-native mut+alloc+free+gc+exit
24 5 20 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 23 2 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 12 7 10.6 osh-native-souffle mut+alloc
21 11 10 10.7 osh-native-souffle mut+alloc+free
21 10 11 8.5 osh-native-souffle mut+alloc+free+gc
22 16 6 8.7 osh-native-souffle mut+alloc+free+gc+exit