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 36 4 10 12.1 18.0 476,744 1,282 6 409,298 5 204,649 osh-native
parse.configure-cpython 34 4 10 12.0 17.6 476,744 1,282 6 408,798 5 204,399 osh-native-souffle
parse.configure-coreutils 159 23 74 41.1 45.8 1,653,332 4,764 12 1,591,980 7 795,990 osh-native
parse.configure-coreutils 139 23 62 44.6 49.7 1,653,331 4,764 12 1,030,682 6 769,425 osh-native-souffle
parse.abuild 9 1 2 2.6 8.5 101,935 180 2 75,270 1 37,635 osh-native
parse.abuild 8 1 1 2.6 8.1 101,935 180 2 75,140 1 37,570 osh-native-souffle
ex.compute-fib 29 0 2 2.4 8.0 584,200 22,608 12 50,000 0 2,912 osh-native
ex.compute-fib 22 0 2 2.4 7.6 584,200 22,608 12 50,000 0 2,850 osh-native-souffle
ex.bashcomp-parse-help 182 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.3 995,280 15,258 21 50,000 0 3,840 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,350 277 3 85,506 1 42,753 osh-native
ex.abuild-print-help 21 1 2 2.8 8.4 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
6 3 3 1.6 dash -
24 20 4 3.0 bash -
104 68 42 3.4 zsh -
16 12 4 29.4 bumpleak/osh mut
20 20 0 28.4 _bin/cxx-opt+bumproot/osh mut
22 13 9 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.3 osh-native mut+alloc
31 16 16 25.4 osh-native mut+alloc+free
36 28 8 18.0 osh-native mut+alloc+free+gc
38 34 4 18.2 osh-native mut+alloc+free+gc+exit
43 34 8 32.6 _bin/cxx-opt+nopool/osh mut+alloc
48 32 16 22.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 11 15 24.8 osh-native-souffle mut+alloc
28 24 4 25.3 osh-native-souffle mut+alloc+free
34 29 4 17.6 osh-native-souffle mut+alloc+free+gc
34 26 7 18.0 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 18 4 1.4 dash -
78 74 4 3.1 bash -
376 223 174 3.5 zsh -
49 40 8 84.8 bumpleak/osh mut
59 50 8 86.0 _bin/cxx-opt+bumproot/osh mut
70 49 20 86.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 65 31 73.6 osh-native mut+alloc
105 80 24 75.4 osh-native mut+alloc+free
159 147 12 45.8 osh-native mut+alloc+free+gc
162 130 32 46.0 osh-native mut+alloc+free+gc+exit
137 93 44 99.1 _bin/cxx-opt+nopool/osh mut+alloc
215 195 20 62.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 47 39 73.2 osh-native-souffle mut+alloc
96 52 44 74.9 osh-native-souffle mut+alloc+free
139 119 20 49.7 osh-native-souffle mut+alloc+free+gc
147 134 12 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 2 0 1.3 dash -
6 6 0 2.9 bash -
8 0 7 3.3 zsh -
6 3 3 10.2 bumpleak/osh mut
7 3 3 11.3 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 8 0 10.0 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 9 0 8.8 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 0 8 9.7 osh-native-souffle mut+alloc
8 8 0 9.7 osh-native-souffle mut+alloc+free
8 4 4 8.1 osh-native-souffle mut+alloc+free+gc
8 8 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
10 10 0 1.4 dash -
28 28 0 3.0 bash -
24 23 0 3.4 zsh -
19 15 4 31.6 bumpleak/osh mut
25 20 4 31.5 _bin/cxx-opt+bumproot/osh mut
28 23 4 32.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 24 12 26.6 osh-native mut+alloc
39 26 13 26.7 osh-native mut+alloc+free
29 24 4 8.0 osh-native mut+alloc+free+gc
28 24 4 8.1 osh-native mut+alloc+free+gc+exit
53 33 20 36.1 _bin/cxx-opt+nopool/osh mut+alloc
36 28 8 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 22 9 26.1 osh-native-souffle mut+alloc
31 23 8 26.3 osh-native-souffle mut+alloc+free
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc
22 21 0 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
73 73 0 3.1 bash -
167 111 56 55.4 bumpleak/osh mut
181 116 64 56.4 _bin/cxx-opt+bumproot/osh mut
192 112 80 55.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 138 73 47.1 osh-native mut+alloc
218 135 83 48.7 osh-native mut+alloc+free
182 110 71 8.8 osh-native mut+alloc+free+gc
182 123 59 8.9 osh-native mut+alloc+free+gc+exit
233 164 68 64.2 _bin/cxx-opt+nopool/osh mut+alloc
212 168 44 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 117 88 46.6 osh-native-souffle mut+alloc
212 144 68 48.3 osh-native-souffle mut+alloc+free
177 92 84 8.3 osh-native-souffle mut+alloc+free+gc
175 138 37 8.3 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 8 1 3.4 dash -
19 14 6 4.5 bash -
17 9 9 3.5 zsh -
19 11 9 12.7 bumpleak/osh mut
19 12 8 12.6 _bin/cxx-opt+bumproot/osh mut
23 19 4 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 13 8 11.0 osh-native mut+alloc
22 17 5 11.3 osh-native mut+alloc+free
22 20 3 9.0 osh-native mut+alloc+free+gc
23 19 4 9.2 osh-native mut+alloc+free+gc+exit
24 13 11 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 24 1 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 11 10 10.2 osh-native-souffle mut+alloc
22 18 4 10.7 osh-native-souffle mut+alloc+free
21 13 9 8.4 osh-native-souffle mut+alloc+free+gc
22 16 7 8.8 osh-native-souffle mut+alloc+free+gc+exit