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 3 9 12.0 17.8 476,721 1,282 6 408,808 5 204,404 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,721 1,282 6 408,678 5 204,339 osh-native-souffle
parse.configure-coreutils 149 25 63 44.6 49.9 1,653,309 4,764 12 1,030,692 6 769,430 osh-native
parse.configure-coreutils 135 24 59 46.1 51.1 1,653,308 4,764 12 1,069,044 6 798,603 osh-native-souffle
parse.abuild 9 1 1 2.6 8.4 101,912 180 2 75,150 1 37,575 osh-native
parse.abuild 8 1 1 2.6 8.1 101,912 180 2 75,020 1 37,510 osh-native-souffle
ex.compute-fib 28 0 1 2.4 8.0 584,177 22,608 12 50,000 0 2,852 osh-native
ex.compute-fib 22 0 1 2.4 7.5 584,177 22,608 12 50,000 0 2,790 osh-native-souffle
ex.bashcomp-parse-help 178 0 3 10.3 8.7 995,254 12,911 21 50,000 0 3,842 osh-native
ex.bashcomp-parse-help 171 0 3 10.3 8.3 995,253 12,911 21 50,000 0 3,782 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,321 270 3 85,386 1 42,693 osh-native
ex.abuild-print-help 20 1 2 2.8 8.4 116,321 270 3 85,262 1 42,631 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 6 0 1.6 dash -
23 21 2 2.9 bash -
100 47 60 3.4 zsh -
16 10 6 29.3 bumpleak/osh mut
19 16 3 29.7 _bin/cxx-opt+bumproot/osh mut
22 16 6 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 20 9 24.9 osh-native mut+alloc
31 20 11 25.7 osh-native mut+alloc+free
36 32 4 17.8 osh-native mut+alloc+free+gc
36 30 6 17.8 osh-native mut+alloc+free+gc+exit
42 31 10 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 36 11 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 17 10 24.8 osh-native-souffle mut+alloc
29 22 7 25.2 osh-native-souffle mut+alloc+free
32 24 8 17.4 osh-native-souffle mut+alloc+free+gc
33 24 9 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 20 1 1.6 dash -
78 78 0 3.3 bash -
367 187 202 3.5 zsh -
50 40 10 84.3 bumpleak/osh mut
60 52 8 85.4 _bin/cxx-opt+bumproot/osh mut
70 57 12 86.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 64 33 73.3 osh-native mut+alloc
104 74 30 75.3 osh-native mut+alloc+free
149 123 26 49.9 osh-native mut+alloc+free+gc
155 142 13 50.6 osh-native mut+alloc+free+gc+exit
138 92 46 98.9 _bin/cxx-opt+nopool/osh mut+alloc
215 191 24 66.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 55 33 73.0 osh-native-souffle mut+alloc
96 61 35 74.9 osh-native-souffle mut+alloc+free
135 112 23 51.1 osh-native-souffle mut+alloc+free+gc
141 117 24 52.0 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 -
6 5 1 2.9 bash -
8 4 3 3.3 zsh -
6 5 1 11.3 bumpleak/osh mut
7 4 3 11.3 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.1 osh-native mut+alloc
9 8 1 10.0 osh-native mut+alloc+free
9 7 2 8.4 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
11 5 6 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 8 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.6 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
8 5 3 8.1 osh-native-souffle mut+alloc+free+gc
8 6 2 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 9 1 1.3 dash -
29 28 1 3.0 bash -
23 15 8 3.1 zsh -
18 14 5 31.3 bumpleak/osh mut
25 22 3 32.7 _bin/cxx-opt+bumproot/osh mut
28 25 3 31.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 30 6 26.3 osh-native mut+alloc
38 27 11 26.6 osh-native mut+alloc+free
28 26 2 8.0 osh-native mut+alloc+free+gc
28 27 1 8.0 osh-native mut+alloc+free+gc+exit
52 39 13 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 34 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 17 14 26.0 osh-native-souffle mut+alloc
32 22 10 26.0 osh-native-souffle mut+alloc+free
22 19 3 7.5 osh-native-souffle mut+alloc+free+gc
22 19 3 7.5 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
72 70 2 3.3 bash -
164 108 56 54.0 bumpleak/osh mut
177 119 58 54.3 _bin/cxx-opt+bumproot/osh mut
189 122 67 55.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
205 143 62 47.1 osh-native mut+alloc
213 135 78 48.6 osh-native mut+alloc+free
178 131 47 8.7 osh-native mut+alloc+free+gc
178 125 52 8.8 osh-native mut+alloc+free+gc+exit
228 150 78 62.8 _bin/cxx-opt+nopool/osh mut+alloc
205 151 54 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
200 134 66 46.5 osh-native-souffle mut+alloc
203 137 66 48.3 osh-native-souffle mut+alloc+free
171 125 46 8.3 osh-native-souffle mut+alloc+free+gc
172 125 47 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
9 3 7 3.4 dash -
19 10 10 4.5 bash -
17 6 11 3.4 zsh -
19 11 9 12.8 bumpleak/osh mut
19 10 9 12.0 _bin/cxx-opt+bumproot/osh mut
21 11 11 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 13 10 11.0 osh-native mut+alloc
23 10 14 10.9 osh-native mut+alloc+free
22 12 11 9.0 osh-native mut+alloc+free+gc
22 13 10 8.9 osh-native mut+alloc+free+gc+exit
24 13 11 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 14 12 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 8 13 10.5 osh-native-souffle mut+alloc
21 10 11 10.7 osh-native-souffle mut+alloc+free
20 11 10 8.4 osh-native-souffle mut+alloc+free+gc
21 9 13 8.4 osh-native-souffle mut+alloc+free+gc+exit