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,737 1,282 6 409,280 5 204,640 osh-native
parse.configure-cpython 33 3 10 12.0 17.6 476,737 1,282 6 408,780 5 204,390 osh-native-souffle
parse.configure-coreutils 176 27 88 41.1 45.9 1,653,325 4,764 12 1,591,962 7 795,981 osh-native
parse.configure-coreutils 151 29 73 44.6 49.7 1,653,324 4,764 12 1,030,664 6 769,416 osh-native-souffle
parse.abuild 9 1 2 2.6 8.5 101,928 180 2 75,252 1 37,626 osh-native
parse.abuild 8 1 1 2.6 8.3 101,928 180 2 75,122 1 37,561 osh-native-souffle
ex.compute-fib 29 0 2 2.4 8.0 584,193 22,608 12 50,000 0 2,903 osh-native
ex.compute-fib 22 0 2 2.4 7.5 584,193 22,608 12 50,000 0 2,841 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 10.3 8.8 995,274 12,911 21 50,000 0 3,891 osh-native
ex.bashcomp-parse-help 175 0 4 10.3 8.4 995,273 12,911 21 50,000 0 3,831 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,343 270 3 85,488 1 42,744 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 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.4 dash -
23 19 4 3.0 bash -
105 62 50 3.3 zsh -
16 12 4 28.7 bumpleak/osh mut
19 15 4 29.6 _bin/cxx-opt+bumproot/osh mut
23 11 11 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.3 osh-native mut+alloc
32 8 24 25.6 osh-native mut+alloc+free
36 28 8 18.0 osh-native mut+alloc+free+gc
38 30 8 18.2 osh-native mut+alloc+free+gc+exit
43 12 31 33.5 _bin/cxx-opt+nopool/osh mut+alloc
49 40 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 12 15 24.8 osh-native-souffle mut+alloc
29 12 17 25.2 osh-native-souffle mut+alloc+free
33 32 0 17.6 osh-native-souffle mut+alloc+free+gc
37 28 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.6 dash -
78 74 4 3.3 bash -
376 196 201 3.5 zsh -
48 36 12 84.1 bumpleak/osh mut
59 39 20 86.1 _bin/cxx-opt+bumproot/osh mut
71 59 12 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 76 20 73.4 osh-native mut+alloc
105 73 32 75.4 osh-native mut+alloc+free
176 147 28 45.9 osh-native mut+alloc+free+gc
183 167 16 46.1 osh-native mut+alloc+free+gc+exit
136 80 56 99.6 _bin/cxx-opt+nopool/osh mut+alloc
241 212 28 61.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 41 45 73.0 osh-native-souffle mut+alloc
95 59 36 75.0 osh-native-souffle mut+alloc+free
151 126 24 49.7 osh-native-souffle mut+alloc+free+gc
156 132 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 3 3 2.9 bash -
8 8 0 3.3 zsh -
6 0 6 11.3 bumpleak/osh mut
7 7 0 12.2 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.1 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 5 5 8.5 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.8 osh-native-souffle mut+alloc
8 0 8 9.7 osh-native-souffle mut+alloc+free
8 8 0 8.3 osh-native-souffle mut+alloc+free+gc
9 4 4 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 -
29 25 4 3.0 bash -
24 19 4 3.3 zsh -
18 14 5 31.6 bumpleak/osh mut
25 21 4 33.4 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 20 16 26.2 osh-native mut+alloc
39 23 15 26.7 osh-native mut+alloc+free
29 25 4 8.0 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
55 42 13 36.1 _bin/cxx-opt+nopool/osh mut+alloc
39 31 8 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 18 11 25.8 osh-native-souffle mut+alloc
32 4 28 26.2 osh-native-souffle mut+alloc+free
22 22 0 7.5 osh-native-souffle mut+alloc+free+gc
21 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
72 68 4 3.3 bash -
168 88 80 55.1 bumpleak/osh mut
181 116 64 55.9 _bin/cxx-opt+bumproot/osh mut
194 91 103 55.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 135 75 47.1 osh-native mut+alloc
218 161 57 48.7 osh-native mut+alloc+free
182 133 48 8.8 osh-native mut+alloc+free+gc
182 125 56 8.8 osh-native mut+alloc+free+gc+exit
232 168 64 64.2 _bin/cxx-opt+nopool/osh mut+alloc
209 150 59 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 115 91 46.7 osh-native-souffle mut+alloc
211 159 52 48.3 osh-native-souffle mut+alloc+free
175 110 65 8.4 osh-native-souffle mut+alloc+free+gc
175 118 57 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 10 0 3.4 dash -
19 15 5 4.3 bash -
18 11 7 3.5 zsh -
17 15 3 13.2 bumpleak/osh mut
19 18 2 12.4 _bin/cxx-opt+bumproot/osh mut
22 10 12 13.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 10 11 10.9 osh-native mut+alloc
22 13 10 11.1 osh-native mut+alloc+free
23 20 3 9.0 osh-native mut+alloc+free+gc
23 10 14 9.0 osh-native mut+alloc+free+gc+exit
25 16 9 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 20 5 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 10 10 10.6 osh-native-souffle mut+alloc
21 19 2 10.7 osh-native-souffle mut+alloc+free
21 15 7 8.7 osh-native-souffle mut+alloc+free+gc
22 12 10 8.5 osh-native-souffle mut+alloc+free+gc+exit