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 32 4 10 12.0 17.4 476,742 1,282 6 408,794 5 204,397 osh-native-souffle
parse.configure-coreutils 150 20 66 41.1 45.8 1,653,330 4,764 12 1,591,976 7 795,988 osh-native
parse.configure-coreutils 136 23 60 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.4 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 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 181 0 3 10.3 8.8 995,279 15,258 21 50,000 0 3,893 osh-native
ex.bashcomp-parse-help 175 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.8 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.4 dash -
23 19 4 3.1 bash -
105 56 56 3.4 zsh -
17 17 0 28.4 bumpleak/osh mut
20 12 8 28.8 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 19 11 25.2 osh-native mut+alloc
31 23 8 25.6 osh-native mut+alloc+free
35 23 11 18.0 osh-native mut+alloc+free+gc
35 16 20 18.1 osh-native mut+alloc+free+gc+exit
43 26 17 32.7 _bin/cxx-opt+nopool/osh mut+alloc
47 39 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 18 9 24.9 osh-native-souffle mut+alloc
28 20 8 25.3 osh-native-souffle mut+alloc+free
32 24 8 17.4 osh-native-souffle mut+alloc+free+gc
33 25 8 17.8 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 -
77 77 0 3.0 bash -
376 212 185 3.5 zsh -
49 45 4 85.4 bumpleak/osh mut
59 47 12 86.4 _bin/cxx-opt+bumproot/osh mut
70 55 16 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 56 40 73.4 osh-native mut+alloc
105 68 36 75.3 osh-native mut+alloc+free
150 118 32 45.8 osh-native mut+alloc+free+gc
160 133 27 46.1 osh-native mut+alloc+free+gc+exit
139 81 57 99.3 _bin/cxx-opt+nopool/osh mut+alloc
213 189 24 61.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 59 27 73.2 osh-native-souffle mut+alloc
96 64 32 75.0 osh-native-souffle mut+alloc+free
136 104 32 49.7 osh-native-souffle mut+alloc+free+gc
143 122 20 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 3 3 3.0 bash -
8 4 4 3.4 zsh -
6 0 6 10.6 bumpleak/osh mut
7 7 0 12.2 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.1 osh-native mut+alloc
9 4 4 10.2 osh-native mut+alloc+free
9 4 4 8.4 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
11 11 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 6 6 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 7 0 9.7 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
8 0 8 8.3 osh-native-souffle mut+alloc+free+gc
8 8 0 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
11 7 4 1.6 dash -
29 28 0 3.0 bash -
24 19 4 3.3 zsh -
18 9 9 31.1 bumpleak/osh mut
25 21 4 32.0 _bin/cxx-opt+bumproot/osh mut
27 23 4 32.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 25.8 osh-native mut+alloc
37 26 11 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
55 31 24 35.7 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 15 15 25.4 osh-native-souffle mut+alloc
31 27 4 25.8 osh-native-souffle mut+alloc+free
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc
21 21 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
73 61 12 3.3 bash -
169 88 80 55.5 bumpleak/osh mut
181 126 55 55.1 _bin/cxx-opt+bumproot/osh mut
194 127 67 56.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 123 87 47.0 osh-native mut+alloc
217 145 72 48.7 osh-native mut+alloc+free
181 120 60 8.8 osh-native mut+alloc+free+gc
182 131 51 8.7 osh-native mut+alloc+free+gc+exit
236 160 76 63.2 _bin/cxx-opt+nopool/osh mut+alloc
212 132 80 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 127 79 46.6 osh-native-souffle mut+alloc
212 112 100 48.3 osh-native-souffle mut+alloc+free
175 123 52 8.3 osh-native-souffle mut+alloc+free+gc
176 136 40 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 2 3.4 dash -
19 18 2 4.5 bash -
18 10 9 3.5 zsh -
18 13 5 11.4 bumpleak/osh mut
21 17 4 12.8 _bin/cxx-opt+bumproot/osh mut
20 13 7 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 10 11 11.0 osh-native mut+alloc
22 17 5 11.1 osh-native mut+alloc+free
22 20 2 8.9 osh-native mut+alloc+free+gc
22 12 11 9.0 osh-native mut+alloc+free+gc+exit
24 19 6 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 17 8 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 11 10 10.6 osh-native-souffle mut+alloc
21 10 11 10.6 osh-native-souffle mut+alloc+free
21 13 8 8.8 osh-native-souffle mut+alloc+free+gc
21 19 2 8.7 osh-native-souffle mut+alloc+free+gc+exit