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 40 6 12 12.0 18.1 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 37 6 12 12.0 17.6 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 186 28 94 44.5 49.5 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 174 30 92 44.5 49.4 1,653,338 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 10 1 2 2.6 8.5 101,942 180 2 75,030 1 37,515 osh-native
parse.abuild 9 1 2 2.4 8.0 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 29 0 2 2.1 8.1 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 2 2.1 7.3 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 189 0 5 10.8 8.9 1,006,005 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 185 0 5 10.8 8.3 1,006,004 15,258 21 50,000 0 3,842 osh-native-souffle
ex.abuild-print-help 24 1 2 2.8 9.2 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 23 1 2 2.8 8.7 116,318 277 3 85,124 1 42,562 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.4 dash -
24 23 0 3.0 bash -
113 67 53 3.4 zsh -
16 16 0 29.1 bumpleak/osh mut
22 13 9 28.6 _bin/cxx-opt+bumproot/osh mut
24 16 8 29.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 19 12 25.2 osh-native mut+alloc
33 20 12 25.6 osh-native mut+alloc+free
40 36 4 18.1 osh-native mut+alloc+free+gc
44 44 0 18.0 osh-native mut+alloc+free+gc+exit
45 29 16 33.0 _bin/cxx-opt+nopool/osh mut+alloc
60 40 20 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 8 19 24.8 osh-native-souffle mut+alloc
30 25 4 25.3 osh-native-souffle mut+alloc+free
37 36 0 17.6 osh-native-souffle mut+alloc+free+gc
36 28 8 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
21 21 0 1.6 dash -
78 78 0 3.1 bash -
387 215 194 3.5 zsh -
49 29 20 83.9 bumpleak/osh mut
59 51 8 85.8 _bin/cxx-opt+bumproot/osh mut
71 67 4 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
100 72 28 73.6 osh-native mut+alloc
107 79 28 75.1 osh-native mut+alloc+free
186 158 28 49.5 osh-native mut+alloc+free+gc
184 168 16 50.3 osh-native mut+alloc+free+gc+exit
147 99 48 98.8 _bin/cxx-opt+nopool/osh mut+alloc
261 228 32 67.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
90 43 47 73.1 osh-native-souffle mut+alloc
100 59 40 74.9 osh-native-souffle mut+alloc+free
174 158 16 49.4 osh-native-souffle mut+alloc+free+gc
176 163 12 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 2 0 1.4 dash -
6 6 0 2.9 bash -
8 8 0 3.3 zsh -
6 6 0 10.4 bumpleak/osh mut
7 7 0 11.9 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.0 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
10 7 3 8.5 osh-native mut+alloc+free+gc
11 7 4 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
13 8 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 8 0 9.7 osh-native-souffle mut+alloc+free
9 5 5 8.0 osh-native-souffle mut+alloc+free+gc
10 6 3 8.0 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 21 7 3.0 bash -
24 16 8 3.4 zsh -
19 19 0 31.7 bumpleak/osh mut
26 26 0 33.4 _bin/cxx-opt+bumproot/osh mut
29 25 4 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
39 31 8 26.2 osh-native mut+alloc
39 27 12 26.5 osh-native mut+alloc+free
29 29 0 8.1 osh-native mut+alloc+free+gc
30 29 0 8.1 osh-native mut+alloc+free+gc+exit
56 40 16 35.7 _bin/cxx-opt+nopool/osh mut+alloc
40 35 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 15 15 25.8 osh-native-souffle mut+alloc
33 28 4 26.1 osh-native-souffle mut+alloc+free
22 22 0 7.3 osh-native-souffle mut+alloc+free+gc
22 18 4 7.5 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 69 4 3.0 bash -
172 114 57 56.1 bumpleak/osh mut
184 128 56 56.5 _bin/cxx-opt+bumproot/osh mut
200 156 44 58.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
220 144 76 48.2 osh-native mut+alloc
233 168 64 50.0 osh-native mut+alloc+free
189 124 64 8.9 osh-native mut+alloc+free+gc
196 144 52 8.8 osh-native mut+alloc+free+gc+exit
240 152 88 64.7 _bin/cxx-opt+nopool/osh mut+alloc
230 190 40 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
216 108 108 47.8 osh-native-souffle mut+alloc
223 127 95 49.5 osh-native-souffle mut+alloc+free
185 120 64 8.3 osh-native-souffle mut+alloc+free+gc
190 138 51 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.5 dash -
20 12 9 4.2 bash -
18 12 7 3.4 zsh -
19 7 13 11.6 bumpleak/osh mut
20 18 3 12.7 _bin/cxx-opt+bumproot/osh mut
20 12 9 14.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 18 5 11.1 osh-native mut+alloc
23 11 13 11.3 osh-native mut+alloc+free
24 15 10 9.2 osh-native mut+alloc+free+gc
24 23 2 8.9 osh-native mut+alloc+free+gc+exit
26 18 9 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 18 9 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
22 21 1 10.7 osh-native-souffle mut+alloc
22 16 7 10.7 osh-native-souffle mut+alloc+free
23 15 8 8.7 osh-native-souffle mut+alloc+free+gc
23 14 10 8.7 osh-native-souffle mut+alloc+free+gc+exit