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,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 151 20 65 41.1 45.8 1,653,324 4,764 12 1,591,964 7 795,982 osh-native
parse.configure-coreutils 135 23 57 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.5 101,927 180 2 75,254 1 37,627 osh-native
parse.abuild 8 1 1 2.6 8.1 101,927 180 2 75,124 1 37,562 osh-native-souffle
ex.compute-fib 28 0 1 2.4 8.0 584,192 22,608 12 50,000 0 2,904 osh-native
ex.compute-fib 22 0 1 2.4 7.6 584,192 22,608 12 50,000 0 2,842 osh-native-souffle
ex.bashcomp-parse-help 181 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.4 995,272 12,911 21 50,000 0 3,832 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,342 270 3 85,490 1 42,745 osh-native
ex.abuild-print-help 21 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
6 6 0 1.6 dash -
23 19 4 3.0 bash -
104 54 56 3.3 zsh -
16 12 4 28.1 bumpleak/osh mut
19 15 4 28.5 _bin/cxx-opt+bumproot/osh mut
22 17 4 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.2 osh-native mut+alloc
31 11 19 25.7 osh-native mut+alloc+free
35 26 9 17.8 osh-native mut+alloc+free+gc
36 32 4 18.2 osh-native mut+alloc+free+gc+exit
43 35 8 33.4 _bin/cxx-opt+nopool/osh mut+alloc
47 31 16 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 17 9 24.9 osh-native-souffle mut+alloc
28 28 0 25.2 osh-native-souffle mut+alloc+free
32 32 0 17.6 osh-native-souffle mut+alloc+free+gc
33 24 8 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
22 18 4 1.4 dash -
78 78 0 3.1 bash -
373 234 160 3.5 zsh -
49 37 12 85.0 bumpleak/osh mut
59 55 4 85.7 _bin/cxx-opt+bumproot/osh mut
78 73 4 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 72 24 73.6 osh-native mut+alloc
104 68 36 75.3 osh-native mut+alloc+free
151 139 12 45.8 osh-native mut+alloc+free+gc
157 145 12 46.1 osh-native mut+alloc+free+gc+exit
137 92 44 99.2 _bin/cxx-opt+nopool/osh mut+alloc
213 204 8 61.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 59 28 73.2 osh-native-souffle mut+alloc
95 53 41 75.0 osh-native-souffle mut+alloc+free
135 99 36 49.6 osh-native-souffle mut+alloc+free+gc
139 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 2 0 1.4 dash -
6 6 0 3.0 bash -
8 8 0 3.4 zsh -
6 0 6 11.2 bumpleak/osh mut
6 6 0 12.7 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
8 8 0 10.0 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
12 6 6 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 7 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 4 4 9.6 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
8 4 4 8.1 osh-native-souffle mut+alloc+free+gc
8 4 4 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 2.9 bash -
24 23 0 3.3 zsh -
18 13 4 34.8 bumpleak/osh mut
25 20 4 31.6 _bin/cxx-opt+bumproot/osh mut
27 23 4 32.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.5 osh-native mut+alloc
38 15 23 26.7 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
28 20 8 7.9 osh-native mut+alloc+free+gc+exit
54 38 15 36.0 _bin/cxx-opt+nopool/osh mut+alloc
36 32 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 25.8 osh-native-souffle mut+alloc
31 20 12 26.2 osh-native-souffle mut+alloc+free
22 17 4 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
74 62 12 3.1 bash -
167 111 56 55.7 bumpleak/osh mut
179 139 40 56.3 _bin/cxx-opt+bumproot/osh mut
193 112 80 55.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 146 65 47.1 osh-native mut+alloc
217 169 48 48.8 osh-native mut+alloc+free
181 148 32 8.8 osh-native mut+alloc+free+gc
182 138 43 8.8 osh-native mut+alloc+free+gc+exit
232 156 76 64.5 _bin/cxx-opt+nopool/osh mut+alloc
211 159 52 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
202 119 83 46.8 osh-native-souffle mut+alloc
210 139 71 48.3 osh-native-souffle mut+alloc+free
174 115 59 8.4 osh-native-souffle mut+alloc+free+gc
174 117 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 5 6 3.5 dash -
19 19 1 4.5 bash -
17 6 12 3.4 zsh -
20 13 7 12.9 bumpleak/osh mut
20 17 3 12.2 _bin/cxx-opt+bumproot/osh mut
20 15 5 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 19 2 11.1 osh-native mut+alloc
22 15 8 11.1 osh-native mut+alloc+free
22 14 8 9.0 osh-native mut+alloc+free+gc
22 21 2 8.9 osh-native mut+alloc+free+gc+exit
25 11 14 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 21 4 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 15 5 10.4 osh-native-souffle mut+alloc
21 15 6 10.7 osh-native-souffle mut+alloc+free
21 14 8 8.7 osh-native-souffle mut+alloc+free+gc
21 10 11 8.8 osh-native-souffle mut+alloc+free+gc+exit