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.0 17.8 476,772 1,282 6 406,624 5 203,312 osh-native
parse.configure-cpython 33 3 10 12.0 17.6 476,772 1,282 6 406,614 5 203,307 osh-native-souffle
parse.configure-coreutils 146 23 60 44.5 49.8 1,653,360 4,764 12 1,025,546 6 764,316 osh-native
parse.configure-coreutils 135 22 59 44.5 49.4 1,653,359 4,764 12 1,025,536 6 764,311 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,963 180 2 75,050 1 37,525 osh-native
parse.abuild 8 1 1 2.6 8.1 101,963 180 2 75,040 1 37,520 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.0 579,726 22,608 12 50,000 0 2,928 osh-native
ex.compute-fib 21 0 2 2.2 7.5 579,726 22,608 12 50,000 0 2,923 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 11.1 8.9 1,021,043 15,258 22 50,000 0 3,917 osh-native
ex.bashcomp-parse-help 176 0 4 11.1 8.4 1,021,042 15,258 22 50,000 0 3,917 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.3 116,361 277 3 85,266 1 42,633 osh-native
ex.abuild-print-help 20 1 2 2.8 8.5 116,361 277 3 85,256 1 42,628 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 5 1 1.4 dash -
23 21 2 3.1 bash -
101 54 53 3.4 zsh -
16 13 3 28.1 bumpleak/osh mut
20 16 4 28.3 _bin/cxx-opt+bumproot/osh mut
22 21 1 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 20 10 25.2 osh-native mut+alloc
31 26 5 25.6 osh-native mut+alloc+free
36 28 8 17.8 osh-native mut+alloc+free+gc
36 29 7 18.1 osh-native mut+alloc+free+gc+exit
42 27 16 32.6 _bin/cxx-opt+nopool/osh mut+alloc
48 41 7 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 20 6 24.9 osh-native-souffle mut+alloc
28 22 6 25.2 osh-native-souffle mut+alloc+free
33 27 6 17.6 osh-native-souffle mut+alloc+free+gc
33 29 4 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 77 1 3.3 bash -
360 190 191 3.5 zsh -
49 36 13 84.7 bumpleak/osh mut
61 53 7 84.8 _bin/cxx-opt+bumproot/osh mut
71 61 10 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 59 40 73.5 osh-native mut+alloc
106 68 39 75.4 osh-native mut+alloc+free
146 124 22 49.8 osh-native mut+alloc+free+gc
150 127 23 50.5 osh-native mut+alloc+free+gc+exit
136 96 40 98.9 _bin/cxx-opt+nopool/osh mut+alloc
197 175 22 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 53 35 73.2 osh-native-souffle mut+alloc
94 62 32 75.0 osh-native-souffle mut+alloc+free
135 111 24 49.4 osh-native-souffle mut+alloc+free+gc
145 122 23 50.1 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 1 1 1.4 dash -
5 4 1 2.9 bash -
7 5 2 3.1 zsh -
6 4 2 10.7 bumpleak/osh mut
6 5 1 12.1 _bin/cxx-opt+bumproot/osh mut
7 4 3 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 5 10.1 osh-native mut+alloc
8 5 3 10.1 osh-native mut+alloc+free
9 8 1 8.5 osh-native mut+alloc+free+gc
9 7 3 8.8 osh-native mut+alloc+free+gc+exit
11 8 3 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 9 2 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.6 osh-native-souffle mut+alloc
8 5 3 9.8 osh-native-souffle mut+alloc+free
8 5 3 8.1 osh-native-souffle mut+alloc+free+gc
8 5 3 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 9 1 1.6 dash -
28 26 2 2.9 bash -
23 15 8 3.3 zsh -
18 14 4 32.1 bumpleak/osh mut
26 24 2 31.9 _bin/cxx-opt+bumproot/osh mut
29 23 6 33.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 27 10 26.3 osh-native mut+alloc
38 25 13 26.7 osh-native mut+alloc+free
28 25 3 8.0 osh-native mut+alloc+free+gc
28 25 3 8.0 osh-native mut+alloc+free+gc+exit
54 42 12 36.1 _bin/cxx-opt+nopool/osh mut+alloc
38 34 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 18 11 25.8 osh-native-souffle mut+alloc
30 22 9 26.2 osh-native-souffle mut+alloc+free
21 20 2 7.5 osh-native-souffle mut+alloc+free+gc
22 19 3 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 66 7 3.1 bash -
168 110 58 56.9 bumpleak/osh mut
185 137 48 56.6 _bin/cxx-opt+bumproot/osh mut
196 132 64 58.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 136 78 48.9 osh-native mut+alloc
224 148 76 50.8 osh-native mut+alloc+free
183 132 51 8.9 osh-native mut+alloc+free+gc
185 141 44 8.9 osh-native mut+alloc+free+gc+exit
233 152 81 64.5 _bin/cxx-opt+nopool/osh mut+alloc
209 155 54 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
207 133 74 48.5 osh-native-souffle mut+alloc
213 139 74 50.4 osh-native-souffle mut+alloc+free
176 141 35 8.4 osh-native-souffle mut+alloc+free+gc
174 128 46 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 -
19 13 6 4.5 bash -
17 7 10 3.5 zsh -
19 9 11 12.6 bumpleak/osh mut
21 7 14 12.9 _bin/cxx-opt+bumproot/osh mut
19 9 11 13.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 10 11 11.1 osh-native mut+alloc
21 10 12 11.3 osh-native mut+alloc+free
22 11 11 9.3 osh-native mut+alloc+free+gc
23 12 11 9.3 osh-native mut+alloc+free+gc+exit
24 12 12 12.6 _bin/cxx-opt+nopool/osh mut+alloc
24 11 14 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 11 9 10.5 osh-native-souffle mut+alloc
21 10 11 10.5 osh-native-souffle mut+alloc+free
20 13 8 8.5 osh-native-souffle mut+alloc+free+gc
21 12 9 8.7 osh-native-souffle mut+alloc+free+gc+exit