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 38 5 12 12.1 17.8 476,744 1,282 6 409,298 5 204,649 osh-native
parse.configure-cpython 33 4 9 12.0 17.7 476,744 1,282 6 408,798 5 204,399 osh-native-souffle
parse.configure-coreutils 182 28 94 41.1 45.8 1,653,332 4,764 12 1,591,980 7 795,990 osh-native
parse.configure-coreutils 152 26 74 44.6 49.7 1,653,331 4,764 12 1,030,682 6 769,425 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,935 180 2 75,270 1 37,635 osh-native
parse.abuild 9 1 1 2.6 8.1 101,935 180 2 75,140 1 37,570 osh-native-souffle
ex.compute-fib 28 0 1 2.4 7.9 584,200 22,608 12 50,000 0 2,912 osh-native
ex.compute-fib 22 0 1 2.4 7.6 584,200 22,608 12 50,000 0 2,850 osh-native-souffle
ex.bashcomp-parse-help 185 0 4 10.3 8.8 995,281 15,258 21 50,000 0 3,895 osh-native
ex.bashcomp-parse-help 177 0 4 10.3 8.4 995,280 15,258 21 50,000 0 3,840 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.2 116,350 277 3 85,506 1 42,753 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,350 277 3 85,382 1 42,691 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 -
23 19 4 3.0 bash -
105 47 64 3.3 zsh -
17 16 0 29.4 bumpleak/osh mut
20 12 8 28.8 _bin/cxx-opt+bumproot/osh mut
23 11 11 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 25 4 25.0 osh-native mut+alloc
31 19 12 25.6 osh-native mut+alloc+free
38 23 15 17.8 osh-native mut+alloc+free+gc
36 24 12 18.2 osh-native mut+alloc+free+gc+exit
43 31 12 33.1 _bin/cxx-opt+nopool/osh mut+alloc
52 40 12 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 11 24.8 osh-native-souffle mut+alloc
29 16 12 25.3 osh-native-souffle mut+alloc+free
33 20 12 17.7 osh-native-souffle mut+alloc+free+gc
35 35 0 17.6 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 74 4 3.3 bash -
385 219 185 3.4 zsh -
49 41 8 84.9 bumpleak/osh mut
60 44 16 86.2 _bin/cxx-opt+bumproot/osh mut
70 70 0 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 69 28 73.5 osh-native mut+alloc
106 69 37 75.4 osh-native mut+alloc+free
182 169 12 45.8 osh-native mut+alloc+free+gc
171 155 16 46.1 osh-native mut+alloc+free+gc+exit
141 108 32 99.2 _bin/cxx-opt+nopool/osh mut+alloc
244 207 36 61.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 56 32 73.2 osh-native-souffle mut+alloc
97 80 16 75.0 osh-native-souffle mut+alloc+free
152 132 20 49.7 osh-native-souffle mut+alloc+free+gc
142 121 20 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 3 3 2.9 bash -
8 4 4 3.3 zsh -
6 6 0 11.3 bumpleak/osh mut
7 0 7 10.7 _bin/cxx-opt+bumproot/osh mut
8 8 0 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.1 osh-native mut+alloc
9 4 4 10.0 osh-native mut+alloc+free
9 3 6 8.5 osh-native mut+alloc+free+gc
9 5 5 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.6 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
9 4 4 9.8 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
9 9 0 8.1 osh-native-souffle mut+alloc+free+gc
9 0 9 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 -
30 26 4 2.9 bash -
24 8 16 3.3 zsh -
19 14 5 32.1 bumpleak/osh mut
25 25 0 33.5 _bin/cxx-opt+bumproot/osh mut
28 20 8 33.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 26 11 26.3 osh-native mut+alloc
38 19 19 26.6 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
54 35 19 36.3 _bin/cxx-opt+nopool/osh mut+alloc
37 26 11 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 15 15 26.0 osh-native-souffle mut+alloc
32 20 12 26.3 osh-native-souffle mut+alloc+free
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc
22 18 4 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 69 4 3.0 bash -
168 86 82 54.6 bumpleak/osh mut
182 105 77 55.9 _bin/cxx-opt+bumproot/osh mut
197 144 52 56.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 125 88 47.1 osh-native mut+alloc
222 133 89 48.7 osh-native mut+alloc+free
185 136 48 8.8 osh-native mut+alloc+free+gc
183 127 56 8.9 osh-native mut+alloc+free+gc+exit
234 139 95 64.0 _bin/cxx-opt+nopool/osh mut+alloc
213 149 64 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 125 80 46.6 osh-native-souffle mut+alloc
215 131 84 48.3 osh-native-souffle mut+alloc+free
177 120 56 8.4 osh-native-souffle mut+alloc+free+gc
175 128 48 8.1 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 -
20 15 5 4.3 bash -
18 9 10 3.5 zsh -
18 16 3 12.9 bumpleak/osh mut
20 12 9 11.7 _bin/cxx-opt+bumproot/osh mut
23 14 9 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
23 13 9 11.0 osh-native mut+alloc
22 13 10 11.1 osh-native mut+alloc+free
23 14 9 9.2 osh-native mut+alloc+free+gc
23 20 3 9.0 osh-native mut+alloc+free+gc+exit
25 19 7 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 17 8 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 12 9 10.5 osh-native-souffle mut+alloc
22 16 6 10.7 osh-native-souffle mut+alloc+free
21 16 6 8.7 osh-native-souffle mut+alloc+free+gc
22 15 7 8.7 osh-native-souffle mut+alloc+free+gc+exit