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 34 3 9 12.1 18.0 476,737 1,282 6 409,280 5 204,640 osh-native
parse.configure-cpython 33 3 9 12.0 17.6 476,737 1,282 6 408,780 5 204,390 osh-native-souffle
parse.configure-coreutils 166 22 79 41.1 45.7 1,653,325 4,764 12 1,591,962 7 795,981 osh-native
parse.configure-coreutils 141 24 65 44.6 49.7 1,653,324 4,764 12 1,030,664 6 769,416 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,928 180 2 75,252 1 37,626 osh-native
parse.abuild 8 1 1 2.6 8.0 101,928 180 2 75,122 1 37,561 osh-native-souffle
ex.compute-fib 28 0 1 2.4 7.9 584,193 22,608 12 50,000 0 2,903 osh-native
ex.compute-fib 21 0 1 2.4 7.6 584,193 22,608 12 50,000 0 2,841 osh-native-souffle
ex.bashcomp-parse-help 182 0 3 10.3 8.8 995,274 12,911 21 50,000 0 3,891 osh-native
ex.bashcomp-parse-help 175 0 3 10.3 8.1 995,273 12,911 21 50,000 0 3,831 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,343 270 3 85,488 1 42,744 osh-native
ex.abuild-print-help 21 1 2 2.8 8.5 116,343 270 3 85,364 1 42,682 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 19 4 2.9 bash -
104 48 62 3.4 zsh -
16 16 0 29.7 bumpleak/osh mut
18 18 0 29.1 _bin/cxx-opt+bumproot/osh mut
22 9 13 29.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.0 osh-native mut+alloc
31 23 8 25.6 osh-native mut+alloc+free
34 34 0 18.0 osh-native mut+alloc+free+gc
35 19 15 18.1 osh-native mut+alloc+free+gc+exit
43 12 31 32.5 _bin/cxx-opt+nopool/osh mut+alloc
50 42 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 11 15 24.6 osh-native-souffle mut+alloc
28 24 4 25.2 osh-native-souffle mut+alloc+free
33 16 16 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 17 4 1.6 dash -
78 74 4 3.1 bash -
379 233 166 3.5 zsh -
49 41 8 84.5 bumpleak/osh mut
60 55 4 85.2 _bin/cxx-opt+bumproot/osh mut
70 62 8 86.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 61 35 73.6 osh-native mut+alloc
105 73 31 75.3 osh-native mut+alloc+free
166 142 24 45.7 osh-native mut+alloc+free+gc
166 146 20 46.1 osh-native mut+alloc+free+gc+exit
139 95 44 99.5 _bin/cxx-opt+nopool/osh mut+alloc
233 217 16 61.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 56 32 73.2 osh-native-souffle mut+alloc
95 55 39 75.0 osh-native-souffle mut+alloc+free
141 125 16 49.7 osh-native-souffle mut+alloc+free+gc
139 115 24 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 0 7 3.3 zsh -
6 6 0 10.8 bumpleak/osh mut
7 4 4 12.1 _bin/cxx-opt+bumproot/osh mut
7 4 4 10.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.1 osh-native mut+alloc
9 4 4 10.1 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 4 8 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 8 0 9.7 osh-native-souffle mut+alloc+free
8 8 0 8.0 osh-native-souffle mut+alloc+free+gc
9 0 8 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.4 dash -
28 28 0 2.9 bash -
24 20 4 3.3 zsh -
19 19 0 32.6 bumpleak/osh mut
25 25 0 31.5 _bin/cxx-opt+bumproot/osh mut
27 27 0 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 20 16 26.5 osh-native mut+alloc
38 26 11 26.7 osh-native mut+alloc+free
28 20 8 7.9 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
54 30 23 36.2 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 18 11 26.0 osh-native-souffle mut+alloc
31 16 16 26.1 osh-native-souffle mut+alloc+free
21 21 0 7.6 osh-native-souffle mut+alloc+free+gc
21 14 7 7.7 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 69 4 3.3 bash -
170 117 52 54.5 bumpleak/osh mut
181 116 64 56.1 _bin/cxx-opt+bumproot/osh mut
195 130 65 55.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 147 64 47.0 osh-native mut+alloc
220 112 108 48.7 osh-native mut+alloc+free
182 138 43 8.8 osh-native mut+alloc+free+gc
182 133 48 8.7 osh-native mut+alloc+free+gc+exit
234 159 75 64.3 _bin/cxx-opt+nopool/osh mut+alloc
209 153 55 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 108 96 46.7 osh-native-souffle mut+alloc
209 122 87 48.2 osh-native-souffle mut+alloc+free
175 115 59 8.1 osh-native-souffle mut+alloc+free+gc
174 127 48 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 8 2 3.5 dash -
20 14 6 4.3 bash -
18 12 7 3.5 zsh -
18 13 5 11.5 bumpleak/osh mut
20 12 9 12.5 _bin/cxx-opt+bumproot/osh mut
21 15 7 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 16 5 11.0 osh-native mut+alloc
22 10 12 11.0 osh-native mut+alloc+free
22 16 6 9.2 osh-native mut+alloc+free+gc
22 20 3 9.0 osh-native mut+alloc+free+gc+exit
25 18 8 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 17 8 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 14 6 10.5 osh-native-souffle mut+alloc
21 11 11 10.6 osh-native-souffle mut+alloc+free
21 14 8 8.5 osh-native-souffle mut+alloc+free+gc
21 17 5 8.5 osh-native-souffle mut+alloc+free+gc+exit