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 35 3 10 12.0 18.1 476,755 1,282 6 406,612 5 203,306 osh-native
parse.configure-cpython 32 3 9 12.0 17.7 476,755 1,282 6 406,208 5 203,104 osh-native-souffle
parse.configure-coreutils 153 25 68 44.5 49.8 1,653,343 4,764 12 1,025,534 6 764,310 osh-native
parse.configure-coreutils 138 23 62 44.5 49.3 1,653,342 4,764 12 1,025,404 6 764,245 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,946 180 2 75,038 1 37,519 osh-native
parse.abuild 9 1 2 2.4 7.9 101,946 180 3 87,100 1 43,550 osh-native-souffle
ex.compute-fib 28 0 2 2.1 8.0 579,610 22,608 12 50,000 0 2,923 osh-native
ex.compute-fib 22 0 1 2.1 7.5 579,610 22,608 12 50,000 0 2,862 osh-native-souffle
ex.bashcomp-parse-help 181 0 4 10.3 8.9 995,292 15,258 21 50,000 0 3,905 osh-native
ex.bashcomp-parse-help 173 0 3 10.3 8.3 995,291 15,258 21 50,000 0 3,848 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,322 277 3 85,256 1 42,628 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,322 277 3 85,132 1 42,566 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 -
23 19 4 3.0 bash -
104 58 53 3.4 zsh -
17 16 0 29.6 bumpleak/osh mut
19 14 5 29.6 _bin/cxx-opt+bumproot/osh mut
22 22 0 30.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 26 4 25.3 osh-native mut+alloc
31 24 8 25.7 osh-native mut+alloc+free
35 31 4 18.1 osh-native mut+alloc+free+gc
38 26 11 18.0 osh-native mut+alloc+free+gc+exit
43 31 12 32.2 _bin/cxx-opt+nopool/osh mut+alloc
50 46 4 22.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 7 19 24.8 osh-native-souffle mut+alloc
28 20 8 25.3 osh-native-souffle mut+alloc+free
32 20 12 17.7 osh-native-souffle mut+alloc+free+gc
34 23 11 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
22 18 4 1.6 dash -
77 77 0 3.1 bash -
374 214 183 3.4 zsh -
48 40 8 85.3 bumpleak/osh mut
59 46 13 86.2 _bin/cxx-opt+bumproot/osh mut
70 62 8 85.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 68 28 73.7 osh-native mut+alloc
106 63 43 75.3 osh-native mut+alloc+free
153 137 16 49.8 osh-native mut+alloc+free+gc
161 124 36 50.6 osh-native mut+alloc+free+gc+exit
138 81 57 98.4 _bin/cxx-opt+nopool/osh mut+alloc
213 188 24 67.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 43 43 73.3 osh-native-souffle mut+alloc
95 59 36 75.1 osh-native-souffle mut+alloc+free
138 121 16 49.3 osh-native-souffle mut+alloc+free+gc
142 113 28 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 3 3 3.0 bash -
8 4 4 3.4 zsh -
6 6 0 10.9 bumpleak/osh mut
6 6 0 12.8 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 9.8 osh-native mut+alloc
9 8 0 10.1 osh-native mut+alloc+free
9 9 0 8.7 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 4 4 9.7 osh-native-souffle mut+alloc
8 8 0 9.8 osh-native-souffle mut+alloc+free
9 6 3 7.9 osh-native-souffle mut+alloc+free+gc
9 9 0 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.6 dash -
29 28 0 2.9 bash -
24 20 4 3.3 zsh -
19 11 7 32.5 bumpleak/osh mut
25 18 7 31.2 _bin/cxx-opt+bumproot/osh mut
28 20 8 32.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 32 4 26.5 osh-native mut+alloc
38 33 4 26.7 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
55 35 19 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 25.8 osh-native-souffle mut+alloc
31 15 15 26.2 osh-native-souffle mut+alloc+free
22 21 0 7.5 osh-native-souffle mut+alloc+free+gc
22 18 4 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 70 4 3.1 bash -
168 100 68 55.0 bumpleak/osh mut
181 104 76 55.3 _bin/cxx-opt+bumproot/osh mut
194 133 61 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
209 145 64 47.3 osh-native mut+alloc
218 145 72 49.0 osh-native mut+alloc+free
181 122 59 8.9 osh-native mut+alloc+free+gc
185 120 64 8.8 osh-native mut+alloc+free+gc+exit
231 139 92 63.7 _bin/cxx-opt+nopool/osh mut+alloc
209 161 47 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 123 80 46.9 osh-native-souffle mut+alloc
209 132 76 48.7 osh-native-souffle mut+alloc+free
173 125 48 8.3 osh-native-souffle mut+alloc+free+gc
174 133 40 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 6 4 3.5 dash -
20 17 3 4.5 bash -
18 12 6 3.5 zsh -
18 11 7 11.1 bumpleak/osh mut
20 7 13 12.8 _bin/cxx-opt+bumproot/osh mut
20 15 6 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 13 8 11.1 osh-native mut+alloc
22 15 8 11.3 osh-native mut+alloc+free
22 13 10 9.2 osh-native mut+alloc+free+gc
23 13 10 8.9 osh-native mut+alloc+free+gc+exit
24 10 15 12.4 _bin/cxx-opt+nopool/osh mut+alloc
25 19 6 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 8 12 10.5 osh-native-souffle mut+alloc
21 13 8 10.6 osh-native-souffle mut+alloc+free
21 18 3 8.7 osh-native-souffle mut+alloc+free+gc
21 20 2 8.7 osh-native-souffle mut+alloc+free+gc+exit