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 10 12.1 18.0 476,742 1,282 6 409,294 5 204,647 osh-native
parse.configure-cpython 34 4 11 12.0 17.7 476,742 1,282 6 408,794 5 204,397 osh-native-souffle
parse.configure-coreutils 164 26 79 41.1 45.8 1,653,330 4,764 12 1,591,976 7 795,988 osh-native
parse.configure-coreutils 143 25 67 44.6 49.4 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 9 1 1 2.6 8.1 101,933 180 2 75,136 1 37,568 osh-native-souffle
ex.compute-fib 28 0 2 2.4 8.1 584,198 22,608 12 50,000 0 2,910 osh-native
ex.compute-fib 22 0 2 2.4 7.6 584,198 22,608 12 50,000 0 2,848 osh-native-souffle
ex.bashcomp-parse-help 181 0 4 10.3 8.5 995,279 12,911 21 50,000 0 3,898 osh-native
ex.bashcomp-parse-help 174 0 4 10.3 8.4 995,278 12,911 21 50,000 0 3,838 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,348 270 3 85,502 1 42,751 osh-native
ex.abuild-print-help 21 1 2 2.8 8.5 116,348 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
6 6 0 1.4 dash -
23 23 0 3.0 bash -
105 56 55 3.3 zsh -
16 12 4 28.2 bumpleak/osh mut
20 12 8 28.9 _bin/cxx-opt+bumproot/osh mut
22 17 4 29.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 25 4 25.2 osh-native mut+alloc
33 32 0 25.6 osh-native mut+alloc+free
36 32 4 18.0 osh-native mut+alloc+free+gc
36 32 4 18.2 osh-native mut+alloc+free+gc+exit
44 24 20 32.2 _bin/cxx-opt+nopool/osh mut+alloc
49 41 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 13 13 24.8 osh-native-souffle mut+alloc
29 16 12 25.2 osh-native-souffle mut+alloc+free
34 30 4 17.7 osh-native-souffle mut+alloc+free+gc
35 27 8 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 18 4 1.4 dash -
78 74 4 3.3 bash -
375 183 213 3.4 zsh -
48 44 4 84.8 bumpleak/osh mut
61 53 8 84.5 _bin/cxx-opt+bumproot/osh mut
71 66 4 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 85 12 73.4 osh-native mut+alloc
106 66 39 75.4 osh-native mut+alloc+free
164 148 16 45.8 osh-native mut+alloc+free+gc
166 146 20 46.1 osh-native mut+alloc+free+gc+exit
140 96 44 98.7 _bin/cxx-opt+nopool/osh mut+alloc
225 200 24 61.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 41 45 73.3 osh-native-souffle mut+alloc
95 55 40 75.0 osh-native-souffle mut+alloc+free
143 119 24 49.4 osh-native-souffle mut+alloc+free+gc
144 124 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.1 zsh -
6 3 3 11.8 bumpleak/osh mut
7 4 4 12.3 _bin/cxx-opt+bumproot/osh mut
8 8 0 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
9 9 0 10.2 osh-native mut+alloc+free
9 3 6 8.5 osh-native mut+alloc+free+gc
9 9 0 8.8 osh-native mut+alloc+free+gc+exit
12 8 4 11.6 _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.6 osh-native-souffle mut+alloc
8 4 4 9.6 osh-native-souffle mut+alloc+free
9 0 9 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.6 dash -
29 29 0 3.0 bash -
24 20 4 3.3 zsh -
19 19 0 32.4 bumpleak/osh mut
26 22 4 32.6 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 33 4 26.2 osh-native mut+alloc
37 22 15 26.7 osh-native mut+alloc+free
28 24 4 8.1 osh-native mut+alloc+free+gc
29 28 0 8.0 osh-native mut+alloc+free+gc+exit
54 46 8 36.4 _bin/cxx-opt+nopool/osh mut+alloc
37 25 11 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 26.0 osh-native-souffle mut+alloc
32 20 12 26.3 osh-native-souffle mut+alloc+free
22 22 0 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 72 0 3.1 bash -
168 108 60 53.9 bumpleak/osh mut
180 112 68 55.5 _bin/cxx-opt+bumproot/osh mut
195 138 57 55.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 140 72 47.0 osh-native mut+alloc
218 158 59 48.8 osh-native mut+alloc+free
181 118 63 8.5 osh-native mut+alloc+free+gc
182 122 59 8.9 osh-native mut+alloc+free+gc+exit
233 148 84 64.1 _bin/cxx-opt+nopool/osh mut+alloc
210 153 56 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 130 73 46.5 osh-native-souffle mut+alloc
213 137 76 48.3 osh-native-souffle mut+alloc+free
174 107 67 8.4 osh-native-souffle mut+alloc+free+gc
175 127 48 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 4 6 3.4 dash -
20 14 6 4.5 bash -
18 11 7 3.4 zsh -
19 18 2 12.0 bumpleak/osh mut
21 6 15 13.0 _bin/cxx-opt+bumproot/osh mut
22 13 9 13.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 13 8 11.1 osh-native mut+alloc
22 14 9 11.1 osh-native mut+alloc+free
22 20 3 9.0 osh-native mut+alloc+free+gc
23 17 6 9.2 osh-native mut+alloc+free+gc+exit
25 14 11 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 21 4 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 7 13 10.5 osh-native-souffle mut+alloc
21 12 9 10.7 osh-native-souffle mut+alloc+free
21 15 7 8.5 osh-native-souffle mut+alloc+free+gc
22 15 7 8.8 osh-native-souffle mut+alloc+free+gc+exit