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 17.7 476,672 1,282 6 408,778 5 204,389 osh-native
parse.configure-cpython 33 4 10 12.0 17.4 476,672 1,282 6 408,648 5 204,324 osh-native-souffle
parse.configure-coreutils 146 23 60 46.1 51.7 1,653,260 4,764 12 1,069,144 6 798,653 osh-native
parse.configure-coreutils 144 21 70 41.0 45.4 1,653,259 4,764 12 1,591,700 7 795,850 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,863 180 2 75,120 1 37,560 osh-native
parse.abuild 9 1 2 2.4 8.0 101,863 180 3 87,216 1 43,608 osh-native-souffle
ex.compute-fib 27 0 1 2.4 7.7 584,131 22,608 12 50,000 0 2,837 osh-native
ex.compute-fib 21 0 2 2.4 7.3 584,131 22,608 12 50,000 0 2,776 osh-native-souffle
ex.bashcomp-parse-help 180 0 3 10.3 8.8 995,205 12,911 21 50,000 0 3,831 osh-native
ex.bashcomp-parse-help 176 0 3 10.3 8.1 995,204 12,911 21 50,000 0 3,764 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.8 116,278 270 3 85,356 1 42,678 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,278 270 3 85,232 1 42,616 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.4 dash -
23 19 4 3.1 bash -
103 55 55 3.4 zsh -
16 12 4 28.8 bumpleak/osh mut
20 15 4 28.5 _bin/cxx-opt+bumproot/osh mut
22 15 7 28.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.0 osh-native mut+alloc
31 19 12 25.6 osh-native mut+alloc+free
35 23 12 17.7 osh-native mut+alloc+free+gc
36 31 4 18.1 osh-native mut+alloc+free+gc+exit
43 30 13 33.4 _bin/cxx-opt+nopool/osh mut+alloc
47 39 8 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 23 4 24.6 osh-native-souffle mut+alloc
29 14 14 25.2 osh-native-souffle mut+alloc+free
33 28 4 17.4 osh-native-souffle mut+alloc+free+gc
33 18 15 17.8 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 21 0 1.6 dash -
78 74 4 3.1 bash -
378 229 170 3.5 zsh -
49 38 11 84.0 bumpleak/osh mut
62 58 4 84.9 _bin/cxx-opt+bumproot/osh mut
69 65 4 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 56 40 73.4 osh-native mut+alloc
106 70 35 75.1 osh-native mut+alloc+free
146 126 20 51.7 osh-native mut+alloc+free+gc
161 136 24 52.2 osh-native mut+alloc+free+gc+exit
138 85 53 99.5 _bin/cxx-opt+nopool/osh mut+alloc
208 187 20 73.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 59 28 73.2 osh-native-souffle mut+alloc
96 68 28 74.7 osh-native-souffle mut+alloc+free
144 128 16 45.4 osh-native-souffle mut+alloc+free+gc
149 117 31 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.4 dash -
6 6 0 2.9 bash -
8 4 4 3.3 zsh -
6 3 3 12.1 bumpleak/osh mut
7 3 3 12.0 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.0 osh-native mut+alloc
8 8 0 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 3 6 8.7 osh-native mut+alloc+free+gc+exit
11 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.7 osh-native-souffle mut+alloc
8 8 0 9.8 osh-native-souffle mut+alloc+free
9 4 4 8.0 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 10 0 1.4 dash -
29 29 0 2.9 bash -
24 16 8 3.3 zsh -
18 13 4 31.8 bumpleak/osh mut
25 21 4 33.0 _bin/cxx-opt+bumproot/osh mut
27 27 0 32.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 31 4 26.3 osh-native mut+alloc
37 25 12 26.6 osh-native mut+alloc+free
27 23 4 7.7 osh-native mut+alloc+free+gc
27 23 4 7.9 osh-native mut+alloc+free+gc+exit
52 28 24 35.9 _bin/cxx-opt+nopool/osh mut+alloc
36 28 8 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 17 12 26.0 osh-native-souffle mut+alloc
31 19 12 26.2 osh-native-souffle mut+alloc+free
21 17 4 7.3 osh-native-souffle mut+alloc+free+gc
21 21 0 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
73 73 0 3.0 bash -
166 103 63 54.9 bumpleak/osh mut
182 138 45 56.5 _bin/cxx-opt+bumproot/osh mut
195 123 72 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 112 100 47.0 osh-native mut+alloc
219 150 69 48.8 osh-native mut+alloc+free
180 128 52 8.8 osh-native mut+alloc+free+gc
182 138 44 8.8 osh-native mut+alloc+free+gc+exit
233 138 95 63.9 _bin/cxx-opt+nopool/osh mut+alloc
208 176 32 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 120 84 46.6 osh-native-souffle mut+alloc
210 131 79 48.3 osh-native-souffle mut+alloc+free
176 112 64 8.1 osh-native-souffle mut+alloc+free+gc
175 138 37 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
10 9 2 3.5 dash -
20 13 7 4.5 bash -
18 9 9 3.4 zsh -
18 9 9 11.6 bumpleak/osh mut
21 17 4 12.5 _bin/cxx-opt+bumproot/osh mut
19 14 6 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 10 10.9 osh-native mut+alloc
22 20 2 11.1 osh-native mut+alloc+free
22 18 6 8.8 osh-native mut+alloc+free+gc
23 19 4 9.0 osh-native mut+alloc+free+gc+exit
24 23 2 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 17 8 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 14 6 10.6 osh-native-souffle mut+alloc
21 18 3 10.7 osh-native-souffle mut+alloc+free
21 12 10 8.7 osh-native-souffle mut+alloc+free+gc
22 19 3 8.7 osh-native-souffle mut+alloc+free+gc+exit