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 35 3 9 12.1 17.8 476,737 1,282 6 409,280 5 204,640 osh-native
parse.configure-cpython 32 3 9 12.0 17.6 476,737 1,282 6 408,780 5 204,390 osh-native-souffle
parse.configure-coreutils 174 27 86 41.1 45.8 1,653,325 4,764 12 1,591,962 7 795,981 osh-native
parse.configure-coreutils 149 28 71 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.3 101,928 180 2 75,122 1 37,561 osh-native-souffle
ex.compute-fib 28 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.6 584,193 22,608 12 50,000 0 2,841 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 10.3 8.5 995,274 12,911 21 50,000 0 3,891 osh-native
ex.bashcomp-parse-help 174 0 4 10.3 8.1 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.4 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 23 0 3.0 bash -
105 60 51 3.4 zsh -
17 0 16 29.0 bumpleak/osh mut
20 12 8 28.4 _bin/cxx-opt+bumproot/osh mut
22 18 4 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 21 8 25.2 osh-native mut+alloc
34 30 4 25.6 osh-native mut+alloc+free
35 23 12 17.8 osh-native mut+alloc+free+gc
36 32 4 18.1 osh-native mut+alloc+free+gc+exit
43 16 27 32.1 _bin/cxx-opt+nopool/osh mut+alloc
49 45 4 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 11 24.8 osh-native-souffle mut+alloc
29 17 12 25.2 osh-native-souffle mut+alloc+free
32 16 16 17.6 osh-native-souffle mut+alloc+free+gc
34 30 4 17.8 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 77 0 3.1 bash -
381 211 191 3.5 zsh -
49 40 8 85.3 bumpleak/osh mut
60 44 16 84.7 _bin/cxx-opt+bumproot/osh mut
70 62 8 85.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 59 39 73.6 osh-native mut+alloc
107 83 24 75.3 osh-native mut+alloc+free
174 166 8 45.8 osh-native mut+alloc+free+gc
174 154 20 46.1 osh-native mut+alloc+free+gc+exit
138 91 47 99.4 _bin/cxx-opt+nopool/osh mut+alloc
242 209 32 61.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
90 57 32 73.3 osh-native-souffle mut+alloc
97 61 36 74.9 osh-native-souffle mut+alloc+free
149 136 12 49.7 osh-native-souffle mut+alloc+free+gc
150 134 16 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 8 0 3.4 zsh -
6 6 0 10.3 bumpleak/osh mut
7 7 0 11.4 _bin/cxx-opt+bumproot/osh mut
8 8 0 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.0 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
10 9 0 8.8 osh-native mut+alloc+free+gc+exit
12 8 4 11.2 _bin/cxx-opt+nopool/osh mut+alloc
13 10 3 9.6 _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 8 0 8.3 osh-native-souffle mut+alloc+free+gc
8 3 6 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 2.8 bash -
23 11 11 3.3 zsh -
19 15 4 31.5 bumpleak/osh mut
26 21 4 31.9 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 37 0 26.3 osh-native mut+alloc
42 27 15 26.9 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
53 41 11 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 32 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 8 26.0 osh-native-souffle mut+alloc
32 16 16 26.3 osh-native-souffle mut+alloc+free
22 22 0 7.6 osh-native-souffle mut+alloc+free+gc
22 22 0 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 69 4 3.1 bash -
169 106 63 55.8 bumpleak/osh mut
182 118 63 56.2 _bin/cxx-opt+bumproot/osh mut
197 136 60 56.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 131 83 47.1 osh-native mut+alloc
221 160 60 48.8 osh-native mut+alloc+free
183 127 56 8.5 osh-native mut+alloc+free+gc
184 132 52 8.8 osh-native mut+alloc+free+gc+exit
231 112 120 64.0 _bin/cxx-opt+nopool/osh mut+alloc
209 177 32 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 121 84 46.6 osh-native-souffle mut+alloc
211 127 84 48.2 osh-native-souffle mut+alloc+free
174 115 59 8.1 osh-native-souffle mut+alloc+free+gc
174 118 57 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 7 4 3.4 dash -
20 17 4 4.3 bash -
18 13 5 3.5 zsh -
18 16 3 11.3 bumpleak/osh mut
22 12 11 13.2 _bin/cxx-opt+bumproot/osh mut
20 12 8 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 16 6 11.0 osh-native mut+alloc
23 17 6 10.9 osh-native mut+alloc+free
23 11 12 9.0 osh-native mut+alloc+free+gc
23 14 10 9.2 osh-native mut+alloc+free+gc+exit
25 15 10 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 15 11 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 13 8 10.6 osh-native-souffle mut+alloc
23 23 0 10.7 osh-native-souffle mut+alloc+free
21 16 6 8.4 osh-native-souffle mut+alloc+free+gc
22 13 9 8.5 osh-native-souffle mut+alloc+free+gc+exit