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 32 3 9 12.0 17.7 476,737 1,282 6 408,780 5 204,390 osh-native-souffle
parse.configure-coreutils 159 22 74 41.1 45.7 1,653,325 4,764 12 1,591,962 7 795,981 osh-native
parse.configure-coreutils 138 23 60 44.6 49.8 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.1 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 1 2.4 7.6 584,193 22,608 12 50,000 0 2,841 osh-native-souffle
ex.bashcomp-parse-help 181 0 4 10.3 8.7 995,274 12,911 21 50,000 0 3,891 osh-native
ex.bashcomp-parse-help 175 0 3 10.3 8.4 995,273 12,911 21 50,000 0 3,831 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.8 116,343 270 3 85,488 1 42,744 osh-native
ex.abuild-print-help 21 1 2 2.8 8.8 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 6 0 1.6 dash -
24 23 0 2.9 bash -
104 53 58 3.4 zsh -
16 12 4 29.5 bumpleak/osh mut
20 19 0 28.5 _bin/cxx-opt+bumproot/osh mut
23 19 4 29.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 25 4 25.3 osh-native mut+alloc
31 27 4 25.6 osh-native mut+alloc+free
36 31 4 18.0 osh-native mut+alloc+free+gc
36 20 16 18.2 osh-native mut+alloc+free+gc+exit
42 30 13 32.9 _bin/cxx-opt+nopool/osh mut+alloc
48 35 12 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 24.9 osh-native-souffle mut+alloc
28 8 20 25.2 osh-native-souffle mut+alloc+free
32 14 18 17.7 osh-native-souffle mut+alloc+free+gc
33 29 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
22 21 0 1.6 dash -
78 74 4 3.1 bash -
378 232 167 3.5 zsh -
48 44 4 84.4 bumpleak/osh mut
61 48 12 86.2 _bin/cxx-opt+bumproot/osh mut
70 61 8 85.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 54 43 73.4 osh-native mut+alloc
105 81 24 75.3 osh-native mut+alloc+free
159 135 24 45.7 osh-native mut+alloc+free+gc
164 152 12 46.1 osh-native mut+alloc+free+gc+exit
140 96 44 98.5 _bin/cxx-opt+nopool/osh mut+alloc
220 203 16 61.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
90 49 41 73.2 osh-native-souffle mut+alloc
95 55 40 74.8 osh-native-souffle mut+alloc+free
138 110 27 49.8 osh-native-souffle mut+alloc+free+gc
143 127 16 50.2 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 3.0 bash -
8 4 4 3.3 zsh -
6 0 6 12.0 bumpleak/osh mut
7 7 0 11.2 _bin/cxx-opt+bumproot/osh mut
8 8 0 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
8 4 4 10.1 osh-native mut+alloc+free
9 3 6 8.7 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.8 osh-native-souffle mut+alloc
8 8 0 9.7 osh-native-souffle mut+alloc+free
8 0 8 8.1 osh-native-souffle mut+alloc+free+gc
9 8 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.6 dash -
31 27 4 3.0 bash -
24 19 4 3.1 zsh -
18 14 4 32.9 bumpleak/osh mut
25 22 4 31.5 _bin/cxx-opt+bumproot/osh mut
28 23 4 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.3 osh-native mut+alloc
38 25 13 26.7 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
28 20 8 8.1 osh-native mut+alloc+free+gc+exit
54 39 15 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
32 20 12 26.3 osh-native-souffle mut+alloc+free
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc
23 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
72 61 11 3.1 bash -
167 92 76 54.8 bumpleak/osh mut
180 121 59 55.6 _bin/cxx-opt+bumproot/osh mut
195 131 63 56.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 128 84 47.1 osh-native mut+alloc
220 140 80 48.8 osh-native mut+alloc+free
181 114 67 8.7 osh-native mut+alloc+free+gc
182 122 59 8.8 osh-native mut+alloc+free+gc+exit
232 152 80 64.1 _bin/cxx-opt+nopool/osh mut+alloc
209 144 64 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 120 84 46.6 osh-native-souffle mut+alloc
215 131 83 48.4 osh-native-souffle mut+alloc+free
175 146 28 8.4 osh-native-souffle mut+alloc+free+gc
175 107 67 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.3 dash -
20 11 9 4.3 bash -
18 5 13 3.4 zsh -
20 13 7 12.7 bumpleak/osh mut
20 11 10 12.7 _bin/cxx-opt+bumproot/osh mut
21 15 7 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 14 7 11.0 osh-native mut+alloc
22 8 15 11.1 osh-native mut+alloc+free
22 22 0 8.8 osh-native mut+alloc+free+gc
23 17 7 9.0 osh-native mut+alloc+free+gc+exit
25 21 4 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 17 8 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 15 6 10.6 osh-native-souffle mut+alloc
21 17 5 10.7 osh-native-souffle mut+alloc+free
21 12 10 8.8 osh-native-souffle mut+alloc+free+gc
27 22 5 8.7 osh-native-souffle mut+alloc+free+gc+exit