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 39 4 12 12.1 17.7 476,742 1,282 6 409,294 5 204,647 osh-native
parse.configure-cpython 34 4 10 12.0 17.6 476,742 1,282 6 408,794 5 204,397 osh-native-souffle
parse.configure-coreutils 173 24 87 41.1 45.9 1,653,330 4,764 12 1,591,976 7 795,988 osh-native
parse.configure-coreutils 154 26 75 44.6 49.7 1,653,329 4,764 12 1,030,678 6 769,423 osh-native-souffle
parse.abuild 10 1 1 2.6 8.7 101,933 180 2 75,266 1 37,633 osh-native
parse.abuild 8 1 1 2.6 8.1 101,933 180 2 75,136 1 37,568 osh-native-souffle
ex.compute-fib 28 0 1 2.4 8.0 584,198 22,608 12 50,000 0 2,910 osh-native
ex.compute-fib 22 0 1 2.4 7.6 584,198 22,608 12 50,000 0 2,848 osh-native-souffle
ex.bashcomp-parse-help 187 0 4 10.3 8.8 995,279 15,258 21 50,000 0 3,893 osh-native
ex.bashcomp-parse-help 177 0 4 10.3 8.3 995,278 15,258 21 50,000 0 3,838 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.9 116,348 277 3 85,502 1 42,751 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,348 277 3 85,378 1 42,689 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 -
106 71 41 3.4 zsh -
16 12 4 28.9 bumpleak/osh mut
19 15 4 29.3 _bin/cxx-opt+bumproot/osh mut
23 15 8 29.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.2 osh-native mut+alloc
33 28 4 25.7 osh-native mut+alloc+free
39 31 8 17.7 osh-native mut+alloc+free+gc
39 38 0 18.2 osh-native mut+alloc+free+gc+exit
44 28 16 33.0 _bin/cxx-opt+nopool/osh mut+alloc
52 40 12 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 24.9 osh-native-souffle mut+alloc
30 17 13 25.4 osh-native-souffle mut+alloc+free
34 23 11 17.6 osh-native-souffle mut+alloc+free+gc
35 34 0 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.3 bash -
384 230 174 3.5 zsh -
50 46 4 84.7 bumpleak/osh mut
60 45 15 85.5 _bin/cxx-opt+bumproot/osh mut
70 54 16 84.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 44 52 73.6 osh-native mut+alloc
104 72 32 75.3 osh-native mut+alloc+free
173 153 20 45.9 osh-native mut+alloc+free+gc
171 143 28 46.1 osh-native mut+alloc+free+gc+exit
141 76 64 97.5 _bin/cxx-opt+nopool/osh mut+alloc
268 240 28 61.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 57 32 73.2 osh-native-souffle mut+alloc
97 76 20 75.0 osh-native-souffle mut+alloc+free
154 121 32 49.7 osh-native-souffle mut+alloc+free+gc
160 128 32 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 0 2 1.3 dash -
6 3 3 3.0 bash -
8 4 4 3.3 zsh -
7 3 3 11.7 bumpleak/osh mut
7 0 7 11.1 _bin/cxx-opt+bumproot/osh mut
7 0 7 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 3 6 10.1 osh-native mut+alloc
9 6 3 10.0 osh-native mut+alloc+free
10 10 0 8.7 osh-native mut+alloc+free+gc
10 9 0 8.7 osh-native mut+alloc+free+gc+exit
13 9 4 11.4 _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.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
9 9 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
11 7 4 1.4 dash -
29 25 4 3.0 bash -
23 19 5 3.3 zsh -
19 14 5 31.6 bumpleak/osh mut
26 22 4 32.3 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 20 16 26.3 osh-native mut+alloc
38 33 4 26.6 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
54 15 38 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 17 13 26.0 osh-native-souffle mut+alloc
32 24 8 26.2 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 65 8 3.1 bash -
169 112 56 55.0 bumpleak/osh mut
180 116 64 55.2 _bin/cxx-opt+bumproot/osh mut
194 109 85 55.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
215 151 64 47.1 osh-native mut+alloc
225 134 91 48.8 osh-native mut+alloc+free
187 125 61 8.8 osh-native mut+alloc+free+gc
183 131 52 8.9 osh-native mut+alloc+free+gc+exit
233 157 76 63.2 _bin/cxx-opt+nopool/osh mut+alloc
217 168 48 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 146 59 46.6 osh-native-souffle mut+alloc
213 130 83 48.3 osh-native-souffle mut+alloc+free
177 132 44 8.3 osh-native-souffle mut+alloc+free+gc
177 108 68 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 9 1 3.5 dash -
20 10 11 4.5 bash -
18 11 8 3.5 zsh -
20 18 2 12.5 bumpleak/osh mut
20 5 15 12.1 _bin/cxx-opt+bumproot/osh mut
21 12 10 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 17 5 11.0 osh-native mut+alloc
25 14 11 11.1 osh-native mut+alloc+free
22 12 11 8.9 osh-native mut+alloc+free+gc
23 22 1 9.0 osh-native mut+alloc+free+gc+exit
26 18 8 12.3 _bin/cxx-opt+nopool/osh mut+alloc
26 18 8 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 11 10 10.6 osh-native-souffle mut+alloc
22 17 5 10.7 osh-native-souffle mut+alloc+free
21 15 7 8.7 osh-native-souffle mut+alloc+free+gc
22 14 8 8.7 osh-native-souffle mut+alloc+free+gc+exit