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 11 12.1 18.0 476,750 1,282 6 409,306 5 204,653 osh-native
parse.configure-cpython 33 3 10 12.0 17.6 476,750 1,282 6 408,806 5 204,403 osh-native-souffle
parse.configure-coreutils 161 22 76 41.1 45.9 1,653,338 4,764 12 1,591,988 7 795,994 osh-native
parse.configure-coreutils 141 23 64 44.6 49.7 1,653,337 4,764 12 1,030,690 6 769,429 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,941 180 2 75,278 1 37,639 osh-native
parse.abuild 9 1 1 2.6 8.1 101,941 180 2 75,148 1 37,574 osh-native-souffle
ex.compute-fib 28 0 2 2.4 8.0 584,206 22,608 12 50,000 0 2,916 osh-native
ex.compute-fib 22 0 1 2.4 7.6 584,206 22,608 12 50,000 0 2,854 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 10.3 8.8 995,287 12,911 21 50,000 0 3,904 osh-native
ex.bashcomp-parse-help 174 0 3 10.3 8.3 995,286 12,911 21 50,000 0 3,845 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,356 270 3 85,514 1 42,757 osh-native
ex.abuild-print-help 21 1 2 2.8 8.8 116,356 270 3 85,390 1 42,695 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 -
23 23 0 2.9 bash -
104 52 61 3.4 zsh -
17 12 4 28.2 bumpleak/osh mut
19 15 4 29.8 _bin/cxx-opt+bumproot/osh mut
23 19 4 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 18 11 25.2 osh-native mut+alloc
31 16 16 25.7 osh-native mut+alloc+free
37 29 8 18.0 osh-native mut+alloc+free+gc
37 28 8 18.2 osh-native mut+alloc+free+gc+exit
44 28 16 32.1 _bin/cxx-opt+nopool/osh mut+alloc
47 35 12 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 27 0 24.8 osh-native-souffle mut+alloc
29 20 8 25.3 osh-native-souffle mut+alloc+free
33 22 11 17.6 osh-native-souffle mut+alloc+free+gc
33 25 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
21 21 0 1.4 dash -
78 78 0 3.1 bash -
378 209 191 3.7 zsh -
49 44 4 85.0 bumpleak/osh mut
60 56 4 85.2 _bin/cxx-opt+bumproot/osh mut
72 55 16 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 74 23 73.6 osh-native mut+alloc
105 58 46 75.4 osh-native mut+alloc+free
161 141 20 45.9 osh-native mut+alloc+free+gc
166 139 28 46.1 osh-native mut+alloc+free+gc+exit
140 88 52 97.7 _bin/cxx-opt+nopool/osh mut+alloc
220 193 28 60.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 68 20 73.0 osh-native-souffle mut+alloc
96 52 44 75.0 osh-native-souffle mut+alloc+free
141 124 16 49.7 osh-native-souffle mut+alloc+free+gc
144 116 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.3 dash -
6 3 3 3.0 bash -
8 0 7 3.1 zsh -
6 6 0 11.3 bumpleak/osh mut
6 6 0 10.6 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.2 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 5 5 8.5 osh-native mut+alloc+free+gc
9 5 5 8.5 osh-native mut+alloc+free+gc+exit
12 0 12 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 8 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 8 0 9.8 osh-native-souffle mut+alloc+free
9 4 4 8.1 osh-native-souffle mut+alloc+free+gc
8 0 8 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 28 0 2.9 bash -
24 20 4 3.3 zsh -
19 7 11 31.0 bumpleak/osh mut
26 14 11 32.7 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 33 4 26.3 osh-native mut+alloc
39 38 0 26.9 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
53 36 16 35.9 _bin/cxx-opt+nopool/osh mut+alloc
36 32 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 15 15 26.1 osh-native-souffle mut+alloc
31 19 12 26.2 osh-native-souffle mut+alloc+free
22 22 0 7.6 osh-native-souffle mut+alloc+free+gc
22 18 4 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 65 8 3.1 bash -
168 128 40 54.2 bumpleak/osh mut
178 141 36 55.0 _bin/cxx-opt+bumproot/osh mut
195 127 68 55.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 138 75 47.1 osh-native mut+alloc
222 158 63 48.8 osh-native mut+alloc+free
183 119 64 8.8 osh-native mut+alloc+free+gc
183 142 41 8.8 osh-native mut+alloc+free+gc+exit
234 142 91 64.0 _bin/cxx-opt+nopool/osh mut+alloc
212 148 64 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 149 56 46.7 osh-native-souffle mut+alloc
211 134 77 48.3 osh-native-souffle mut+alloc+free
174 109 65 8.3 osh-native-souffle mut+alloc+free+gc
175 143 32 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 4 6 3.4 dash -
20 13 7 4.3 bash -
18 12 6 3.4 zsh -
18 7 11 13.3 bumpleak/osh mut
19 13 6 11.8 _bin/cxx-opt+bumproot/osh mut
20 19 1 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 10 11.0 osh-native mut+alloc
22 17 6 11.1 osh-native mut+alloc+free
23 15 9 9.0 osh-native mut+alloc+free+gc
23 10 14 8.9 osh-native mut+alloc+free+gc+exit
24 17 7 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 15 11 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 10 10 10.5 osh-native-souffle mut+alloc
21 15 6 10.7 osh-native-souffle mut+alloc+free
21 11 10 8.8 osh-native-souffle mut+alloc+free+gc
22 13 9 8.5 osh-native-souffle mut+alloc+free+gc+exit