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 9 12.0 18.0 476,665 1,282 6 408,764 5 204,382 osh-native
parse.configure-cpython 32 3 9 12.0 17.7 476,665 1,282 6 408,634 5 204,317 osh-native-souffle
parse.configure-coreutils 144 22 58 46.1 51.6 1,653,253 4,764 12 1,069,130 6 798,646 osh-native
parse.configure-coreutils 139 19 64 41.0 45.5 1,653,252 4,764 12 1,591,686 7 795,843 osh-native-souffle
parse.abuild 9 1 1 2.6 8.4 101,856 180 2 75,106 1 37,553 osh-native
parse.abuild 9 1 2 2.4 7.9 101,856 180 3 87,202 1 43,601 osh-native-souffle
ex.compute-fib 29 0 1 2.4 7.9 584,124 22,608 12 50,000 0 2,830 osh-native
ex.compute-fib 21 0 1 2.4 7.3 584,124 22,608 12 50,000 0 2,769 osh-native-souffle
ex.bashcomp-parse-help 176 0 3 10.3 8.8 995,201 12,911 21 50,000 0 3,827 osh-native
ex.bashcomp-parse-help 169 0 3 10.3 8.4 995,200 12,911 21 50,000 0 3,757 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 9.0 116,271 270 3 85,342 1 42,671 osh-native
ex.abuild-print-help 20 1 2 2.8 8.5 116,271 270 3 85,218 1 42,609 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 5 1 1.6 dash -
23 22 1 3.0 bash -
100 53 53 3.5 zsh -
16 13 3 28.2 bumpleak/osh mut
20 17 3 29.5 _bin/cxx-opt+bumproot/osh mut
23 17 6 28.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 16 13 25.0 osh-native mut+alloc
31 20 11 25.6 osh-native mut+alloc+free
35 29 6 18.0 osh-native mut+alloc+free+gc
36 30 5 18.0 osh-native mut+alloc+free+gc+exit
42 24 18 32.6 _bin/cxx-opt+nopool/osh mut+alloc
46 36 11 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 23 4 24.9 osh-native-souffle mut+alloc
28 15 13 25.2 osh-native-souffle mut+alloc+free
32 24 8 17.7 osh-native-souffle mut+alloc+free+gc
32 25 7 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
21 18 3 1.6 dash -
78 74 4 3.3 bash -
365 189 196 3.5 zsh -
49 45 4 85.5 bumpleak/osh mut
61 52 9 85.3 _bin/cxx-opt+bumproot/osh mut
70 59 11 84.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 59 37 73.4 osh-native mut+alloc
104 76 28 75.3 osh-native mut+alloc+free
144 120 24 51.6 osh-native mut+alloc+free+gc
150 126 24 52.1 osh-native mut+alloc+free+gc+exit
138 92 46 98.9 _bin/cxx-opt+nopool/osh mut+alloc
209 182 27 74.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 60 28 73.2 osh-native-souffle mut+alloc
95 62 33 74.9 osh-native-souffle mut+alloc+free
139 114 25 45.5 osh-native-souffle mut+alloc+free+gc
140 117 23 45.7 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 -
5 5 0 3.0 bash -
7 5 2 3.3 zsh -
6 4 2 10.7 bumpleak/osh mut
6 3 4 10.9 _bin/cxx-opt+bumproot/osh mut
7 6 1 11.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.1 osh-native mut+alloc
8 5 3 10.0 osh-native mut+alloc+free
9 7 2 8.4 osh-native mut+alloc+free+gc
9 7 2 8.7 osh-native mut+alloc+free+gc+exit
11 5 7 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 8 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 7 1 9.8 osh-native-souffle mut+alloc
8 4 3 9.7 osh-native-souffle mut+alloc+free
9 7 2 7.9 osh-native-souffle mut+alloc+free+gc
9 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 9 1 1.3 dash -
28 26 2 2.8 bash -
23 14 9 3.3 zsh -
18 14 5 32.6 bumpleak/osh mut
24 19 5 31.4 _bin/cxx-opt+bumproot/osh mut
27 23 4 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 27 8 26.2 osh-native mut+alloc
37 31 6 26.5 osh-native mut+alloc+free
29 27 2 7.9 osh-native mut+alloc+free+gc
28 26 2 8.0 osh-native mut+alloc+free+gc+exit
53 40 13 36.0 _bin/cxx-opt+nopool/osh mut+alloc
36 31 5 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 16 14 26.0 osh-native-souffle mut+alloc
32 19 12 26.2 osh-native-souffle mut+alloc+free
21 17 4 7.3 osh-native-souffle mut+alloc+free+gc
21 19 2 7.3 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 70 3 3.1 bash -
163 116 47 54.0 bumpleak/osh mut
175 121 54 54.8 _bin/cxx-opt+bumproot/osh mut
189 130 58 56.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
205 133 72 47.0 osh-native mut+alloc
215 141 74 48.7 osh-native mut+alloc+free
176 132 44 8.8 osh-native mut+alloc+free+gc
176 126 50 8.8 osh-native mut+alloc+free+gc+exit
228 154 74 62.8 _bin/cxx-opt+nopool/osh mut+alloc
204 152 52 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
199 127 72 46.6 osh-native-souffle mut+alloc
208 135 73 48.2 osh-native-souffle mut+alloc+free
169 122 47 8.4 osh-native-souffle mut+alloc+free+gc
170 117 53 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
9 5 5 3.5 dash -
19 10 10 4.3 bash -
17 5 12 3.5 zsh -
17 5 13 11.3 bumpleak/osh mut
18 8 10 11.8 _bin/cxx-opt+bumproot/osh mut
19 12 7 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 8 13 11.0 osh-native mut+alloc
21 10 12 11.1 osh-native mut+alloc+free
21 13 9 9.0 osh-native mut+alloc+free+gc
22 14 8 8.9 osh-native mut+alloc+free+gc+exit
24 12 13 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 12 12 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 10 10 10.5 osh-native-souffle mut+alloc
20 11 10 10.4 osh-native-souffle mut+alloc+free
20 10 11 8.5 osh-native-souffle mut+alloc+free+gc
20 11 10 8.7 osh-native-souffle mut+alloc+free+gc+exit