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 36 4 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.6 476,742 1,282 6 408,794 5 204,397 osh-native-souffle
parse.configure-coreutils 167 22 81 41.1 45.8 1,653,330 4,764 12 1,591,976 7 795,988 osh-native
parse.configure-coreutils 150 27 74 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.7 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.7 579,597 22,608 12 50,000 0 2,848 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 10.3 8.8 995,279 15,258 21 50,000 0 3,893 osh-native
ex.bashcomp-parse-help 177 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.0 116,309 277 3 85,502 1 42,751 osh-native
ex.abuild-print-help 22 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 -
24 19 4 3.1 bash -
105 56 56 3.3 zsh -
17 17 0 29.5 bumpleak/osh mut
20 20 0 29.4 _bin/cxx-opt+bumproot/osh mut
23 15 8 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 19 12 25.0 osh-native mut+alloc
32 24 8 25.6 osh-native mut+alloc+free
36 32 4 18.0 osh-native mut+alloc+free+gc
37 36 0 18.2 osh-native mut+alloc+free+gc+exit
45 24 20 32.3 _bin/cxx-opt+nopool/osh mut+alloc
50 45 4 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 24.8 osh-native-souffle mut+alloc
30 22 7 25.2 osh-native-souffle mut+alloc+free
33 29 4 17.6 osh-native-souffle mut+alloc+free+gc
34 21 13 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 77 0 3.1 bash -
379 191 212 3.5 zsh -
49 45 4 84.1 bumpleak/osh mut
58 54 4 85.5 _bin/cxx-opt+bumproot/osh mut
71 63 8 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 62 35 73.4 osh-native mut+alloc
106 66 39 75.3 osh-native mut+alloc+free
167 142 24 45.8 osh-native mut+alloc+free+gc
169 137 32 46.1 osh-native mut+alloc+free+gc+exit
138 113 24 97.8 _bin/cxx-opt+nopool/osh mut+alloc
239 207 32 62.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 48 40 73.0 osh-native-souffle mut+alloc
97 48 48 75.0 osh-native-souffle mut+alloc+free
150 134 16 49.7 osh-native-souffle mut+alloc+free+gc
157 149 8 50.2 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 0 7 3.3 zsh -
6 0 6 11.7 bumpleak/osh mut
7 7 0 11.5 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.1 osh-native mut+alloc
9 4 4 10.2 osh-native mut+alloc+free
9 9 0 8.7 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 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
8 8 0 9.7 osh-native-souffle mut+alloc+free
8 8 0 8.1 osh-native-souffle mut+alloc+free+gc
8 0 8 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 29 0 2.9 bash -
24 16 8 3.3 zsh -
18 13 4 30.7 bumpleak/osh mut
25 21 4 32.0 _bin/cxx-opt+bumproot/osh mut
27 23 4 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 25.8 osh-native mut+alloc
38 21 17 26.3 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
28 20 8 8.1 osh-native mut+alloc+free+gc+exit
58 53 4 35.6 _bin/cxx-opt+nopool/osh mut+alloc
37 29 8 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 18 11 25.6 osh-native-souffle mut+alloc
31 23 8 25.7 osh-native-souffle mut+alloc+free
22 22 0 7.7 osh-native-souffle mut+alloc+free+gc
22 15 7 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 69 4 3.0 bash -
167 87 80 54.6 bumpleak/osh mut
182 105 77 56.2 _bin/cxx-opt+bumproot/osh mut
195 111 83 56.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 124 88 47.1 osh-native mut+alloc
220 148 72 48.8 osh-native mut+alloc+free
183 151 32 8.8 osh-native mut+alloc+free+gc
183 139 45 8.5 osh-native mut+alloc+free+gc+exit
234 147 87 63.2 _bin/cxx-opt+nopool/osh mut+alloc
210 154 57 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
214 134 79 46.5 osh-native-souffle mut+alloc
214 145 68 48.3 osh-native-souffle mut+alloc+free
177 124 52 8.4 osh-native-souffle mut+alloc+free+gc
177 124 52 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
10 9 1 3.4 dash -
20 18 3 4.5 bash -
19 11 8 3.5 zsh -
20 18 2 12.3 bumpleak/osh mut
21 13 9 13.2 _bin/cxx-opt+bumproot/osh mut
20 18 3 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 10 11 11.0 osh-native mut+alloc
22 18 5 11.1 osh-native mut+alloc+free
22 14 9 9.0 osh-native mut+alloc+free+gc
23 13 10 8.9 osh-native mut+alloc+free+gc+exit
25 11 15 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 19 7 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 15 6 10.6 osh-native-souffle mut+alloc
22 18 4 10.7 osh-native-souffle mut+alloc+free
22 20 3 8.7 osh-native-souffle mut+alloc+free+gc
22 21 2 8.7 osh-native-souffle mut+alloc+free+gc+exit