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,736 1,282 6 409,278 5 204,639 osh-native
parse.configure-cpython 32 3 9 12.0 17.7 476,736 1,282 6 408,778 5 204,389 osh-native-souffle
parse.configure-coreutils 164 24 78 41.1 45.9 1,653,324 4,764 12 1,591,960 7 795,980 osh-native
parse.configure-coreutils 140 22 64 44.6 49.7 1,653,323 4,764 12 1,030,662 6 769,415 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,927 180 2 75,250 1 37,625 osh-native
parse.abuild 8 1 1 2.6 8.3 101,927 180 2 75,120 1 37,560 osh-native-souffle
ex.compute-fib 29 0 1 2.4 8.0 584,192 22,608 12 50,000 0 2,902 osh-native
ex.compute-fib 22 0 1 2.4 7.5 584,192 22,608 12 50,000 0 2,840 osh-native-souffle
ex.bashcomp-parse-help 182 0 3 10.3 8.8 995,273 12,911 21 50,000 0 3,890 osh-native
ex.bashcomp-parse-help 176 0 3 10.3 8.4 995,272 12,911 21 50,000 0 3,830 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.9 116,342 270 3 85,486 1 42,743 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,342 270 3 85,362 1 42,681 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 6 0 1.6 dash -
24 23 0 3.0 bash -
106 53 59 3.3 zsh -
17 8 8 29.5 bumpleak/osh mut
19 14 5 30.3 _bin/cxx-opt+bumproot/osh mut
22 15 7 29.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.2 osh-native mut+alloc
31 20 12 25.7 osh-native mut+alloc+free
36 36 0 18.0 osh-native mut+alloc+free+gc
37 33 4 18.1 osh-native mut+alloc+free+gc+exit
43 27 16 32.1 _bin/cxx-opt+nopool/osh mut+alloc
48 36 12 22.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 23 4 24.8 osh-native-souffle mut+alloc
29 17 12 25.2 osh-native-souffle mut+alloc+free
32 20 12 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 21 0 1.4 dash -
77 77 0 3.3 bash -
376 198 198 3.7 zsh -
50 42 8 84.3 bumpleak/osh mut
67 55 12 84.6 _bin/cxx-opt+bumproot/osh mut
73 64 8 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 82 16 73.5 osh-native mut+alloc
106 66 39 75.4 osh-native mut+alloc+free
164 144 20 45.9 osh-native mut+alloc+free+gc
172 163 8 46.1 osh-native mut+alloc+free+gc+exit
138 105 32 99.4 _bin/cxx-opt+nopool/osh mut+alloc
238 226 12 62.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 52 36 73.2 osh-native-souffle mut+alloc
96 71 24 75.0 osh-native-souffle mut+alloc+free
140 116 24 49.7 osh-native-souffle mut+alloc+free+gc
143 115 28 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 4 4 3.3 zsh -
6 6 0 12.0 bumpleak/osh mut
7 4 4 12.2 _bin/cxx-opt+bumproot/osh mut
8 4 4 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
9 6 3 10.0 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 9 0 8.8 osh-native mut+alloc+free+gc+exit
12 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 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
10 10 0 1.6 dash -
28 28 0 3.0 bash -
24 20 4 3.3 zsh -
19 11 7 31.7 bumpleak/osh mut
27 22 4 32.8 _bin/cxx-opt+bumproot/osh mut
28 23 5 32.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.3 osh-native mut+alloc
38 27 11 26.7 osh-native mut+alloc+free
29 28 0 8.0 osh-native mut+alloc+free+gc
28 28 0 7.7 osh-native mut+alloc+free+gc+exit
54 31 23 36.0 _bin/cxx-opt+nopool/osh mut+alloc
36 32 4 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 25 4 25.7 osh-native-souffle mut+alloc
32 24 8 26.5 osh-native-souffle mut+alloc+free
22 22 0 7.5 osh-native-souffle mut+alloc+free+gc
22 21 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 69 4 3.0 bash -
168 129 39 54.8 bumpleak/osh mut
185 126 59 55.0 _bin/cxx-opt+bumproot/osh mut
195 148 48 56.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 112 100 47.0 osh-native mut+alloc
218 119 99 48.9 osh-native mut+alloc+free
182 119 63 8.8 osh-native mut+alloc+free+gc
183 119 64 8.9 osh-native mut+alloc+free+gc+exit
234 137 97 62.8 _bin/cxx-opt+nopool/osh mut+alloc
210 174 36 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
201 107 95 46.7 osh-native-souffle mut+alloc
209 141 68 48.4 osh-native-souffle mut+alloc+free
176 120 56 8.4 osh-native-souffle mut+alloc+free+gc
173 121 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 13 7 4.5 bash -
18 13 5 3.5 zsh -
18 12 7 11.8 bumpleak/osh mut
19 11 9 12.4 _bin/cxx-opt+bumproot/osh mut
21 11 11 13.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 13 9 11.0 osh-native mut+alloc
22 11 12 10.9 osh-native mut+alloc+free
22 17 6 8.9 osh-native mut+alloc+free+gc
23 11 13 9.0 osh-native mut+alloc+free+gc+exit
24 17 8 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 17 8 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 11 9 10.6 osh-native-souffle mut+alloc
21 12 10 10.6 osh-native-souffle mut+alloc+free
21 20 1 8.7 osh-native-souffle mut+alloc+free+gc
22 13 9 8.5 osh-native-souffle mut+alloc+free+gc+exit