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 42 6 15 12.0 17.8 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 38 6 14 12.0 17.4 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 192 31 101 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 174 29 92 44.5 49.3 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.2 8.0 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 2 2.2 7.5 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 185 0 4 10.9 8.8 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 180 0 4 10.9 8.4 1,017,203 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 21 1 2 2.8 8.8 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
6 4 2 1.4 dash -
24 22 2 3.1 bash -
103 56 54 3.4 zsh -
17 12 5 28.2 bumpleak/osh mut
20 17 3 29.5 _bin/cxx-opt+bumproot/osh mut
23 18 6 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 19 11 25.0 osh-native mut+alloc
32 24 9 25.8 osh-native mut+alloc+free
42 35 7 17.8 osh-native mut+alloc+free+gc
42 34 8 18.1 osh-native mut+alloc+free+gc+exit
44 24 20 32.4 _bin/cxx-opt+nopool/osh mut+alloc
59 49 10 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 16 11 24.9 osh-native-souffle mut+alloc
29 15 14 25.3 osh-native-souffle mut+alloc+free
38 29 9 17.4 osh-native-souffle mut+alloc+free+gc
36 26 10 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 20 1 1.4 dash -
78 77 1 3.1 bash -
370 201 191 3.4 zsh -
50 40 10 84.9 bumpleak/osh mut
63 50 13 86.2 _bin/cxx-opt+bumproot/osh mut
71 53 18 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 62 35 73.6 osh-native mut+alloc
108 83 25 75.4 osh-native mut+alloc+free
192 167 25 49.8 osh-native mut+alloc+free+gc
188 163 25 50.2 osh-native mut+alloc+free+gc+exit
140 90 49 98.9 _bin/cxx-opt+nopool/osh mut+alloc
250 225 25 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 60 28 73.1 osh-native-souffle mut+alloc
97 65 32 75.0 osh-native-souffle mut+alloc+free
174 149 25 49.3 osh-native-souffle mut+alloc+free+gc
173 151 22 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 3 3.3 zsh -
6 2 4 10.5 bumpleak/osh mut
7 4 3 10.8 _bin/cxx-opt+bumproot/osh mut
8 6 2 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 2 7 10.0 osh-native mut+alloc
9 6 3 10.0 osh-native mut+alloc+free
10 5 5 8.5 osh-native mut+alloc+free+gc
10 9 1 8.7 osh-native mut+alloc+free+gc+exit
12 7 5 11.5 _bin/cxx-opt+nopool/osh mut+alloc
13 8 5 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 3 5 9.7 osh-native-souffle mut+alloc
8 5 3 9.8 osh-native-souffle mut+alloc+free
9 6 3 8.0 osh-native-souffle mut+alloc+free+gc
9 9 0 8.1 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 -
28 28 0 3.0 bash -
23 21 2 3.3 zsh -
19 14 5 31.5 bumpleak/osh mut
27 20 7 32.9 _bin/cxx-opt+bumproot/osh mut
28 24 4 31.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 23 14 26.3 osh-native mut+alloc
39 31 8 26.6 osh-native mut+alloc+free
29 28 1 8.0 osh-native mut+alloc+free+gc
29 25 4 8.0 osh-native mut+alloc+free+gc+exit
54 34 20 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 34 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 20 11 25.8 osh-native-souffle mut+alloc
32 22 10 26.2 osh-native-souffle mut+alloc+free
22 19 3 7.5 osh-native-souffle mut+alloc+free+gc
22 20 2 7.7 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 72 2 3.3 bash -
168 107 60 56.7 bumpleak/osh mut
182 129 53 58.0 _bin/cxx-opt+bumproot/osh mut
199 131 68 57.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
218 162 56 48.6 osh-native mut+alloc
225 148 77 50.6 osh-native mut+alloc+free
185 124 61 8.8 osh-native mut+alloc+free+gc
187 128 59 8.8 osh-native mut+alloc+free+gc+exit
237 159 78 64.4 _bin/cxx-opt+nopool/osh mut+alloc
224 172 52 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
208 135 72 48.3 osh-native-souffle mut+alloc
218 150 68 50.0 osh-native-souffle mut+alloc+free
180 140 40 8.4 osh-native-souffle mut+alloc+free+gc
179 137 42 8.5 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 3 8 3.4 dash -
20 10 11 4.3 bash -
18 5 14 3.4 zsh -
21 5 16 12.8 bumpleak/osh mut
21 10 11 12.6 _bin/cxx-opt+bumproot/osh mut
23 10 14 14.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 13 10 11.0 osh-native mut+alloc
23 8 16 11.1 osh-native mut+alloc+free
23 14 10 9.0 osh-native mut+alloc+free+gc
24 15 9 9.0 osh-native mut+alloc+free+gc+exit
26 11 15 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 14 13 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 11 10 10.6 osh-native-souffle mut+alloc
22 13 10 10.6 osh-native-souffle mut+alloc+free
21 9 13 8.8 osh-native-souffle mut+alloc+free+gc
22 11 12 8.7 osh-native-souffle mut+alloc+free+gc+exit