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,755 1,282 6 406,612 5 203,306 osh-native
parse.configure-cpython 33 3 9 12.0 17.7 476,755 1,282 6 406,208 5 203,104 osh-native-souffle
parse.configure-coreutils 149 24 61 44.5 49.9 1,653,343 4,764 12 1,025,534 6 764,310 osh-native
parse.configure-coreutils 136 23 60 44.5 49.4 1,653,342 4,764 12 1,025,404 6 764,245 osh-native-souffle
parse.abuild 9 1 1 2.6 8.4 101,946 180 2 75,038 1 37,519 osh-native
parse.abuild 9 1 2 2.4 8.0 101,946 180 3 87,100 1 43,550 osh-native-souffle
ex.compute-fib 28 0 1 2.1 8.1 579,610 22,608 12 50,000 0 2,923 osh-native
ex.compute-fib 22 0 2 2.1 7.6 579,610 22,608 12 50,000 0 2,862 osh-native-souffle
ex.bashcomp-parse-help 183 0 3 10.3 8.7 995,292 15,258 21 50,000 0 3,905 osh-native
ex.bashcomp-parse-help 174 0 3 10.3 8.1 995,291 15,258 21 50,000 0 3,848 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.9 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.4 dash -
24 20 4 3.0 bash -
111 72 46 3.3 zsh -
17 13 4 29.8 bumpleak/osh mut
20 20 0 30.1 _bin/cxx-opt+bumproot/osh mut
23 11 11 29.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.2 osh-native mut+alloc
31 12 19 25.6 osh-native mut+alloc+free
35 28 8 18.0 osh-native mut+alloc+free+gc
37 25 12 18.0 osh-native mut+alloc+free+gc+exit
44 24 20 33.3 _bin/cxx-opt+nopool/osh mut+alloc
49 33 16 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 11 24.6 osh-native-souffle mut+alloc
28 16 12 25.3 osh-native-souffle mut+alloc+free
33 28 4 17.7 osh-native-souffle mut+alloc+free+gc
34 21 13 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 22 0 1.6 dash -
78 74 4 3.3 bash -
385 212 194 3.5 zsh -
49 41 8 84.6 bumpleak/osh mut
61 48 12 84.7 _bin/cxx-opt+bumproot/osh mut
70 62 8 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 61 37 73.7 osh-native mut+alloc
106 82 23 75.4 osh-native mut+alloc+free
149 104 44 49.9 osh-native mut+alloc+free+gc
151 135 16 50.5 osh-native mut+alloc+free+gc+exit
138 77 61 98.0 _bin/cxx-opt+nopool/osh mut+alloc
211 191 20 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 72 16 73.1 osh-native-souffle mut+alloc
97 56 40 75.0 osh-native-souffle mut+alloc+free
136 112 24 49.4 osh-native-souffle mut+alloc+free+gc
143 110 33 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 0 2 1.4 dash -
6 6 0 2.9 bash -
8 4 4 3.4 zsh -
6 6 0 11.1 bumpleak/osh mut
6 0 6 12.4 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.0 osh-native mut+alloc
8 8 0 10.1 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 4 8 9.3 _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
9 9 0 8.0 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.4 dash -
28 28 0 2.8 bash -
24 16 8 3.3 zsh -
19 15 4 32.2 bumpleak/osh mut
26 26 0 32.7 _bin/cxx-opt+bumproot/osh mut
29 24 4 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 20 16 26.5 osh-native mut+alloc
37 26 11 26.6 osh-native mut+alloc+free
28 24 4 8.1 osh-native mut+alloc+free+gc
28 27 0 8.0 osh-native mut+alloc+free+gc+exit
58 33 25 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 32 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 22 9 26.0 osh-native-souffle mut+alloc
31 19 12 26.2 osh-native-souffle mut+alloc+free
22 21 0 7.6 osh-native-souffle mut+alloc+free+gc
22 21 0 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
75 71 4 3.1 bash -
167 119 48 54.3 bumpleak/osh mut
182 126 55 55.6 _bin/cxx-opt+bumproot/osh mut
194 125 69 55.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 124 88 47.5 osh-native mut+alloc
218 150 69 49.2 osh-native mut+alloc+free
183 115 67 8.7 osh-native mut+alloc+free+gc
183 130 53 8.8 osh-native mut+alloc+free+gc+exit
233 144 88 64.6 _bin/cxx-opt+nopool/osh mut+alloc
211 135 76 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 142 63 46.9 osh-native-souffle mut+alloc
212 140 72 48.7 osh-native-souffle mut+alloc+free
174 106 67 8.1 osh-native-souffle mut+alloc+free+gc
175 130 45 8.1 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 1 3.4 dash -
20 17 3 4.3 bash -
18 9 9 3.4 zsh -
19 9 10 13.2 bumpleak/osh mut
21 11 10 12.9 _bin/cxx-opt+bumproot/osh mut
21 14 8 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 18 3 11.0 osh-native mut+alloc
22 18 5 11.3 osh-native mut+alloc+free
22 22 0 8.9 osh-native mut+alloc+free+gc
23 14 9 9.2 osh-native mut+alloc+free+gc+exit
25 18 7 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 15 10 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 17 3 10.6 osh-native-souffle mut+alloc
21 16 6 10.9 osh-native-souffle mut+alloc+free
21 13 8 8.7 osh-native-souffle mut+alloc+free+gc
21 17 5 8.7 osh-native-souffle mut+alloc+free+gc+exit