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 5 11 12.1 18.1 476,742 1,282 6 409,294 5 204,647 osh-native
parse.configure-cpython 36 5 12 12.0 17.6 476,742 1,282 6 408,794 5 204,397 osh-native-souffle
parse.configure-coreutils 177 27 90 41.1 45.9 1,653,330 4,764 12 1,591,976 7 795,988 osh-native
parse.configure-coreutils 160 27 84 44.6 49.7 1,653,329 4,764 12 1,030,678 6 769,423 osh-native-souffle
parse.abuild 10 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.1 101,933 180 2 75,136 1 37,568 osh-native-souffle
ex.compute-fib 28 0 1 2.1 8.0 579,597 22,608 12 50,000 0 2,910 osh-native
ex.compute-fib 22 0 2 2.1 7.6 579,597 22,608 12 50,000 0 2,848 osh-native-souffle
ex.bashcomp-parse-help 202 0 4 10.3 8.8 995,279 15,258 21 50,000 0 3,893 osh-native
ex.bashcomp-parse-help 176 0 4 10.3 8.3 995,278 15,258 21 50,000 0 3,838 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.9 116,309 277 3 85,502 1 42,751 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 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 6 0 1.6 dash -
23 23 0 3.0 bash -
105 57 54 3.4 zsh -
17 9 9 28.3 bumpleak/osh mut
20 20 0 28.7 _bin/cxx-opt+bumproot/osh mut
22 15 7 29.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 11 18 25.2 osh-native mut+alloc
32 20 12 25.7 osh-native mut+alloc+free
37 18 18 18.1 osh-native mut+alloc+free+gc
38 26 11 18.2 osh-native mut+alloc+free+gc+exit
44 24 20 32.2 _bin/cxx-opt+nopool/osh mut+alloc
56 45 11 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 13 13 24.8 osh-native-souffle mut+alloc
29 14 14 25.2 osh-native-souffle mut+alloc+free
36 28 8 17.6 osh-native-souffle mut+alloc+free+gc
36 32 4 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 21 0 1.6 dash -
78 78 0 3.3 bash -
382 213 190 3.4 zsh -
50 42 8 84.3 bumpleak/osh mut
60 47 12 86.0 _bin/cxx-opt+bumproot/osh mut
70 58 12 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 58 39 73.7 osh-native mut+alloc
104 68 36 75.3 osh-native mut+alloc+free
177 152 24 45.9 osh-native mut+alloc+free+gc
185 157 28 46.0 osh-native mut+alloc+free+gc+exit
138 110 28 98.6 _bin/cxx-opt+nopool/osh mut+alloc
262 234 28 60.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 55 31 73.0 osh-native-souffle mut+alloc
94 78 16 75.0 osh-native-souffle mut+alloc+free
160 140 20 49.7 osh-native-souffle mut+alloc+free+gc
167 143 24 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 0 7 3.3 zsh -
6 3 3 10.7 bumpleak/osh mut
7 3 3 12.7 _bin/cxx-opt+bumproot/osh mut
8 8 0 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 6 10.0 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
10 3 7 8.5 osh-native mut+alloc+free+gc
10 9 0 8.7 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 0 8 9.7 osh-native-souffle mut+alloc
9 4 4 9.6 osh-native-souffle mut+alloc+free
8 4 4 8.1 osh-native-souffle mut+alloc+free+gc
9 9 0 8.3 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.3 dash -
29 29 0 2.9 bash -
24 24 0 3.3 zsh -
18 13 4 31.0 bumpleak/osh mut
26 21 4 31.3 _bin/cxx-opt+bumproot/osh mut
28 19 8 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.0 osh-native mut+alloc
37 22 15 26.2 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
54 33 21 35.6 _bin/cxx-opt+nopool/osh mut+alloc
38 30 7 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 8 25.6 osh-native-souffle mut+alloc
31 4 27 25.7 osh-native-souffle mut+alloc+free
22 17 4 7.6 osh-native-souffle mut+alloc+free+gc
22 22 0 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 73 0 3.1 bash -
167 123 44 54.5 bumpleak/osh mut
182 127 55 56.1 _bin/cxx-opt+bumproot/osh mut
195 119 76 56.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 136 76 47.0 osh-native mut+alloc
227 127 99 48.7 osh-native mut+alloc+free
202 141 60 8.8 osh-native mut+alloc+free+gc
183 135 48 8.8 osh-native mut+alloc+free+gc+exit
233 134 99 63.3 _bin/cxx-opt+nopool/osh mut+alloc
214 151 63 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
210 129 81 46.6 osh-native-souffle mut+alloc
212 139 72 48.4 osh-native-souffle mut+alloc+free
176 132 44 8.3 osh-native-souffle mut+alloc+free+gc
177 124 52 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 9 2 3.5 dash -
20 14 6 4.3 bash -
18 6 12 3.5 zsh -
19 11 9 12.5 bumpleak/osh mut
20 10 11 12.0 _bin/cxx-opt+bumproot/osh mut
22 13 10 13.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 15 7 11.0 osh-native mut+alloc
23 14 9 11.0 osh-native mut+alloc+free
22 20 3 8.9 osh-native mut+alloc+free+gc
23 14 9 9.0 osh-native mut+alloc+free+gc+exit
25 13 13 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 17 8 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 19 3 10.6 osh-native-souffle mut+alloc
21 6 15 10.5 osh-native-souffle mut+alloc+free
21 19 2 8.7 osh-native-souffle mut+alloc+free+gc
23 14 8 8.7 osh-native-souffle mut+alloc+free+gc+exit