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 4 10 12.1 18.0 476,736 1,282 6 409,282 5 204,641 osh-native
parse.configure-cpython 32 3 9 12.0 17.6 476,736 1,282 6 408,782 5 204,391 osh-native-souffle
parse.configure-coreutils 154 20 70 41.1 45.8 1,653,324 4,764 12 1,591,964 7 795,982 osh-native
parse.configure-coreutils 136 23 59 44.6 49.6 1,653,323 4,764 12 1,030,666 6 769,417 osh-native-souffle
parse.abuild 9 1 1 2.6 8.4 101,927 180 2 75,254 1 37,627 osh-native
parse.abuild 8 1 1 2.6 8.3 101,927 180 2 75,124 1 37,562 osh-native-souffle
ex.compute-fib 28 0 2 2.4 7.9 584,192 22,608 12 50,000 0 2,904 osh-native
ex.compute-fib 22 0 1 2.4 7.5 584,192 22,608 12 50,000 0 2,842 osh-native-souffle
ex.bashcomp-parse-help 182 0 3 10.3 8.8 995,273 12,911 21 50,000 0 3,892 osh-native
ex.bashcomp-parse-help 174 0 3 10.3 8.3 995,272 12,911 21 50,000 0 3,832 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.9 116,342 270 3 85,490 1 42,745 osh-native
ex.abuild-print-help 22 1 2 2.8 8.7 116,342 270 3 85,366 1 42,683 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 23 0 3.0 bash -
103 54 56 3.4 zsh -
16 8 8 28.1 bumpleak/osh mut
20 19 0 29.0 _bin/cxx-opt+bumproot/osh mut
22 22 0 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 22 7 25.3 osh-native mut+alloc
32 32 0 25.6 osh-native mut+alloc+free
35 20 16 18.0 osh-native mut+alloc+free+gc
39 38 0 18.2 osh-native mut+alloc+free+gc+exit
43 19 23 32.1 _bin/cxx-opt+nopool/osh mut+alloc
47 31 16 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 18 9 24.6 osh-native-souffle mut+alloc
29 12 16 25.3 osh-native-souffle mut+alloc+free
32 28 4 17.6 osh-native-souffle mut+alloc+free+gc
33 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
21 21 0 1.4 dash -
78 74 4 3.1 bash -
379 213 186 3.5 zsh -
49 38 11 84.0 bumpleak/osh mut
59 47 12 86.1 _bin/cxx-opt+bumproot/osh mut
70 70 0 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 70 27 73.4 osh-native mut+alloc
105 78 27 75.4 osh-native mut+alloc+free
154 142 12 45.8 osh-native mut+alloc+free+gc
160 128 32 46.0 osh-native mut+alloc+free+gc+exit
138 93 44 99.0 _bin/cxx-opt+nopool/osh mut+alloc
222 194 28 61.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 46 42 73.0 osh-native-souffle mut+alloc
96 56 40 74.9 osh-native-souffle mut+alloc+free
136 112 24 49.6 osh-native-souffle mut+alloc+free+gc
140 127 12 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 0 2 1.3 dash -
6 6 0 3.0 bash -
8 4 4 3.1 zsh -
6 6 0 12.2 bumpleak/osh mut
6 6 0 10.8 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 6 3 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 4 8 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.8 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
9 0 9 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
11 7 3 1.4 dash -
29 29 0 3.0 bash -
24 20 4 3.4 zsh -
19 15 4 31.7 bumpleak/osh mut
26 21 4 32.5 _bin/cxx-opt+bumproot/osh mut
28 20 8 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.2 osh-native mut+alloc
37 21 16 26.7 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 21 7 8.0 osh-native mut+alloc+free+gc+exit
56 39 16 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 32 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 17 13 25.8 osh-native-souffle mut+alloc
32 24 8 26.3 osh-native-souffle mut+alloc+free
22 22 0 7.5 osh-native-souffle mut+alloc+free+gc
22 17 4 7.3 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 -
167 103 63 54.1 bumpleak/osh mut
182 117 65 55.2 _bin/cxx-opt+bumproot/osh mut
193 129 64 56.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 144 68 47.2 osh-native mut+alloc
216 120 96 48.8 osh-native mut+alloc+free
182 133 48 8.8 osh-native mut+alloc+free+gc
183 115 67 8.8 osh-native mut+alloc+free+gc+exit
231 151 79 62.9 _bin/cxx-opt+nopool/osh mut+alloc
210 166 44 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 140 64 46.6 osh-native-souffle mut+alloc
210 113 97 48.5 osh-native-souffle mut+alloc+free
174 130 43 8.3 osh-native-souffle mut+alloc+free+gc
175 139 36 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 9 1 3.4 dash -
20 14 6 4.3 bash -
18 10 8 3.5 zsh -
18 13 5 11.4 bumpleak/osh mut
20 11 8 12.5 _bin/cxx-opt+bumproot/osh mut
20 12 8 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 17 5 11.0 osh-native mut+alloc
22 15 8 11.1 osh-native mut+alloc+free
22 15 7 8.9 osh-native mut+alloc+free+gc
23 18 6 8.9 osh-native mut+alloc+free+gc+exit
24 23 2 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 17 8 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 7 13 10.6 osh-native-souffle mut+alloc
21 19 2 10.7 osh-native-souffle mut+alloc+free
22 14 8 8.7 osh-native-souffle mut+alloc+free+gc
21 18 4 8.7 osh-native-souffle mut+alloc+free+gc+exit