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 4 10 12.1 17.8 476,745 1,282 6 409,294 5 204,647 osh-native
parse.configure-cpython 35 4 11 12.0 17.4 476,745 1,282 6 408,794 5 204,397 osh-native-souffle
parse.configure-coreutils 189 31 102 41.1 45.9 1,653,333 4,764 12 1,591,976 7 795,988 osh-native
parse.configure-coreutils 159 28 80 44.6 49.5 1,653,332 4,764 12 1,030,678 6 769,423 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,936 180 2 75,266 1 37,633 osh-native
parse.abuild 9 1 1 2.6 8.1 101,936 180 2 75,136 1 37,568 osh-native-souffle
ex.compute-fib 29 0 2 2.4 8.0 584,201 22,608 12 50,000 0 2,910 osh-native
ex.compute-fib 22 0 2 2.4 7.6 584,201 22,608 12 50,000 0 2,848 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 10.3 8.8 995,282 12,911 21 50,000 0 3,898 osh-native
ex.bashcomp-parse-help 177 0 4 10.3 8.4 995,281 12,911 21 50,000 0 3,838 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,351 270 3 85,502 1 42,751 osh-native
ex.abuild-print-help 21 1 2 2.8 8.4 116,351 270 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
7 3 3 1.4 dash -
24 23 0 3.1 bash -
104 68 42 3.4 zsh -
16 12 4 28.8 bumpleak/osh mut
20 12 8 28.4 _bin/cxx-opt+bumproot/osh mut
23 11 11 29.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 11 18 25.2 osh-native mut+alloc
32 14 18 25.7 osh-native mut+alloc+free
37 32 4 17.8 osh-native mut+alloc+free+gc
38 38 0 18.2 osh-native mut+alloc+free+gc+exit
43 34 9 32.6 _bin/cxx-opt+nopool/osh mut+alloc
53 41 12 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
28 12 16 24.8 osh-native-souffle mut+alloc
30 19 11 25.3 osh-native-souffle mut+alloc+free
35 27 8 17.4 osh-native-souffle mut+alloc+free+gc
37 24 12 17.6 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.4 dash -
78 78 0 3.1 bash -
382 205 198 3.5 zsh -
49 45 4 84.4 bumpleak/osh mut
61 53 8 85.4 _bin/cxx-opt+bumproot/osh mut
71 55 16 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
101 48 52 73.5 osh-native mut+alloc
106 66 39 75.4 osh-native mut+alloc+free
189 180 8 45.9 osh-native mut+alloc+free+gc
204 180 24 46.0 osh-native mut+alloc+free+gc+exit
141 90 51 99.2 _bin/cxx-opt+nopool/osh mut+alloc
312 287 24 62.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 48 40 73.2 osh-native-souffle mut+alloc
97 53 45 75.0 osh-native-souffle mut+alloc+free
159 143 16 49.5 osh-native-souffle mut+alloc+free+gc
163 139 24 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 2 0 1.4 dash -
6 6 0 2.9 bash -
8 4 4 3.3 zsh -
6 6 0 11.6 bumpleak/osh mut
7 0 7 11.8 _bin/cxx-opt+bumproot/osh mut
8 8 0 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.2 osh-native mut+alloc
9 0 9 10.1 osh-native mut+alloc+free
9 3 6 8.5 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 12 0 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 0 8 9.7 osh-native-souffle mut+alloc
8 0 8 9.8 osh-native-souffle mut+alloc+free
9 9 0 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.4 dash -
29 29 0 3.0 bash -
24 24 0 3.3 zsh -
19 18 0 33.0 bumpleak/osh mut
26 18 7 32.6 _bin/cxx-opt+bumproot/osh mut
29 25 4 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 28 8 26.5 osh-native mut+alloc
39 34 4 26.7 osh-native mut+alloc+free
29 28 0 8.0 osh-native mut+alloc+free+gc
30 25 4 8.0 osh-native mut+alloc+free+gc+exit
55 39 16 36.5 _bin/cxx-opt+nopool/osh mut+alloc
37 26 11 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 22 9 26.0 osh-native-souffle mut+alloc
32 24 8 26.2 osh-native-souffle mut+alloc+free
22 22 0 7.6 osh-native-souffle mut+alloc+free+gc
22 18 4 7.3 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 70 4 3.1 bash -
168 112 56 53.9 bumpleak/osh mut
181 118 63 55.1 _bin/cxx-opt+bumproot/osh mut
196 128 68 56.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 121 93 47.0 osh-native mut+alloc
219 143 75 48.8 osh-native mut+alloc+free
183 139 44 8.8 osh-native mut+alloc+free+gc
182 145 36 8.8 osh-native mut+alloc+free+gc+exit
233 148 84 63.5 _bin/cxx-opt+nopool/osh mut+alloc
219 163 56 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 147 59 46.6 osh-native-souffle mut+alloc
213 134 79 48.4 osh-native-souffle mut+alloc+free
177 128 48 8.4 osh-native-souffle mut+alloc+free+gc
178 111 67 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 5 5 3.4 dash -
21 17 4 4.3 bash -
19 7 12 3.5 zsh -
19 16 3 13.2 bumpleak/osh mut
21 11 10 12.6 _bin/cxx-opt+bumproot/osh mut
22 15 7 13.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 13 10 11.1 osh-native mut+alloc
23 15 9 11.1 osh-native mut+alloc+free
23 19 5 9.0 osh-native mut+alloc+free+gc
23 14 10 9.0 osh-native mut+alloc+free+gc+exit
26 22 4 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 25 2 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 13 8 10.6 osh-native-souffle mut+alloc
22 20 3 10.7 osh-native-souffle mut+alloc+free
21 19 3 8.4 osh-native-souffle mut+alloc+free+gc
22 20 3 8.7 osh-native-souffle mut+alloc+free+gc+exit