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 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 165 24 80 41.1 45.8 1,653,325 4,764 12 1,591,962 7 795,981 osh-native
parse.configure-coreutils 142 24 65 44.6 49.5 1,653,324 4,764 12 1,030,664 6 769,416 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 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 28 0 1 2.4 8.0 584,193 22,608 12 50,000 0 2,903 osh-native
ex.compute-fib 22 0 1 2.4 7.6 584,193 22,608 12 50,000 0 2,841 osh-native-souffle
ex.bashcomp-parse-help 183 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.3 995,273 12,911 21 50,000 0 3,831 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 8.9 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
7 3 3 1.6 dash -
23 19 4 3.0 bash -
107 66 48 3.3 zsh -
16 8 8 28.1 bumpleak/osh mut
19 16 4 29.6 _bin/cxx-opt+bumproot/osh mut
23 15 8 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 23 8 25.2 osh-native mut+alloc
32 20 12 25.6 osh-native mut+alloc+free
36 24 12 18.0 osh-native mut+alloc+free+gc
37 24 12 18.2 osh-native mut+alloc+free+gc+exit
44 16 28 33.2 _bin/cxx-opt+nopool/osh mut+alloc
50 45 4 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 12 15 24.8 osh-native-souffle mut+alloc
29 17 12 25.2 osh-native-souffle mut+alloc+free
33 24 8 17.6 osh-native-souffle mut+alloc+free+gc
34 29 4 17.6 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 -
78 74 4 3.3 bash -
386 231 176 3.4 zsh -
49 41 8 84.3 bumpleak/osh mut
61 52 8 85.0 _bin/cxx-opt+bumproot/osh mut
72 59 12 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 60 36 73.6 osh-native mut+alloc
106 65 41 75.4 osh-native mut+alloc+free
165 142 24 45.8 osh-native mut+alloc+free+gc
168 136 32 46.0 osh-native mut+alloc+free+gc+exit
138 91 47 98.4 _bin/cxx-opt+nopool/osh mut+alloc
238 214 24 61.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
90 35 55 73.3 osh-native-souffle mut+alloc
97 43 54 75.0 osh-native-souffle mut+alloc+free
142 102 39 49.5 osh-native-souffle mut+alloc+free+gc
148 128 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 6 0 2.9 bash -
8 0 7 3.1 zsh -
6 3 3 10.5 bumpleak/osh mut
7 7 0 12.8 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 8 0 10.1 osh-native mut+alloc
9 9 0 10.2 osh-native mut+alloc+free
9 5 5 8.7 osh-native mut+alloc+free+gc
9 5 5 8.8 osh-native mut+alloc+free+gc+exit
12 12 0 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 0 8 9.8 osh-native-souffle mut+alloc+free
8 8 0 8.3 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.4 dash -
29 29 0 3.0 bash -
24 12 12 3.3 zsh -
18 14 5 31.7 bumpleak/osh mut
26 22 4 32.1 _bin/cxx-opt+bumproot/osh mut
28 20 8 33.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.1 osh-native mut+alloc
38 29 8 26.7 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
54 34 19 36.5 _bin/cxx-opt+nopool/osh mut+alloc
38 37 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 13 17 25.8 osh-native-souffle mut+alloc
32 28 4 26.3 osh-native-souffle mut+alloc+free
22 22 0 7.6 osh-native-souffle mut+alloc+free+gc
23 15 8 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 73 0 3.1 bash -
168 100 68 55.1 bumpleak/osh mut
183 134 49 56.2 _bin/cxx-opt+bumproot/osh mut
192 116 76 55.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 141 72 47.0 osh-native mut+alloc
220 140 80 48.8 osh-native mut+alloc+free
183 127 56 8.8 osh-native mut+alloc+free+gc
183 115 68 8.8 osh-native mut+alloc+free+gc+exit
232 144 88 63.3 _bin/cxx-opt+nopool/osh mut+alloc
209 150 59 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
207 131 75 46.7 osh-native-souffle mut+alloc
211 158 53 48.3 osh-native-souffle mut+alloc+free
175 115 60 8.3 osh-native-souffle mut+alloc+free+gc
175 119 56 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.5 dash -
20 10 11 4.3 bash -
18 11 7 3.5 zsh -
20 14 6 12.5 bumpleak/osh mut
20 12 8 13.9 _bin/cxx-opt+bumproot/osh mut
21 10 11 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 16 6 11.0 osh-native mut+alloc
23 11 13 10.9 osh-native mut+alloc+free
23 18 5 8.9 osh-native mut+alloc+free+gc
24 10 14 9.0 osh-native mut+alloc+free+gc+exit
26 13 13 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 19 6 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 14 7 10.6 osh-native-souffle mut+alloc
22 15 7 10.7 osh-native-souffle mut+alloc+free
21 17 5 8.5 osh-native-souffle mut+alloc+free+gc
23 14 10 8.5 osh-native-souffle mut+alloc+free+gc+exit