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 10 12.0 17.7 476,755 1,282 6 406,208 5 203,104 osh-native-souffle
parse.configure-coreutils 144 23 59 44.5 49.7 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.5 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.0 579,610 22,608 12 50,000 0 2,923 osh-native
ex.compute-fib 21 0 2 2.1 7.6 579,610 22,608 12 50,000 0 2,862 osh-native-souffle
ex.bashcomp-parse-help 180 0 3 10.3 8.8 995,292 15,258 21 50,000 0 3,905 osh-native
ex.bashcomp-parse-help 175 0 4 10.3 8.4 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.4 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 6 0 1.6 dash -
23 23 0 3.1 bash -
105 48 63 3.4 zsh -
17 16 0 29.9 bumpleak/osh mut
20 19 0 28.9 _bin/cxx-opt+bumproot/osh mut
22 22 0 29.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 18 11 25.4 osh-native mut+alloc
31 27 4 25.6 osh-native mut+alloc+free
35 35 0 18.0 osh-native mut+alloc+free+gc
36 31 4 18.0 osh-native mut+alloc+free+gc+exit
42 25 17 33.6 _bin/cxx-opt+nopool/osh mut+alloc
48 32 16 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 7 24.9 osh-native-souffle mut+alloc
28 20 8 25.3 osh-native-souffle mut+alloc+free
33 20 12 17.7 osh-native-souffle mut+alloc+free+gc
34 22 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
21 18 4 1.6 dash -
77 77 0 3.3 bash -
374 220 175 3.5 zsh -
48 36 12 84.1 bumpleak/osh mut
59 47 12 84.6 _bin/cxx-opt+bumproot/osh mut
70 43 27 84.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 72 24 73.7 osh-native mut+alloc
104 76 28 75.2 osh-native mut+alloc+free
144 128 16 49.7 osh-native mut+alloc+free+gc
151 122 29 50.6 osh-native mut+alloc+free+gc+exit
136 72 64 98.3 _bin/cxx-opt+nopool/osh mut+alloc
205 172 32 68.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 51 36 73.0 osh-native-souffle mut+alloc
95 67 28 75.0 osh-native-souffle mut+alloc+free
138 117 20 49.3 osh-native-souffle mut+alloc+free+gc
143 119 24 49.9 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 -
7 7 0 2.8 bash -
8 4 4 3.1 zsh -
6 3 3 12.2 bumpleak/osh mut
7 0 7 11.5 _bin/cxx-opt+bumproot/osh mut
7 0 7 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.2 osh-native mut+alloc
8 3 6 10.0 osh-native mut+alloc+free
9 4 4 8.5 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 7 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 4 4 9.6 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 5 5 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 21 7 3.0 bash -
24 16 8 3.3 zsh -
19 11 7 32.2 bumpleak/osh mut
25 16 8 31.5 _bin/cxx-opt+bumproot/osh mut
29 28 0 31.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 25 11 26.3 osh-native mut+alloc
37 29 8 26.6 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
54 37 17 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 32 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 13 17 25.8 osh-native-souffle mut+alloc
31 23 8 26.2 osh-native-souffle mut+alloc+free
21 18 4 7.6 osh-native-souffle mut+alloc+free+gc
21 17 4 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
74 69 4 3.3 bash -
169 104 64 55.4 bumpleak/osh mut
182 111 71 55.8 _bin/cxx-opt+bumproot/osh mut
195 146 49 56.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 142 69 47.4 osh-native mut+alloc
220 152 68 49.1 osh-native mut+alloc+free
180 140 40 8.8 osh-native mut+alloc+free+gc
183 111 71 8.8 osh-native mut+alloc+free+gc+exit
232 144 88 63.5 _bin/cxx-opt+nopool/osh mut+alloc
210 169 40 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 128 76 46.9 osh-native-souffle mut+alloc
211 109 101 48.6 osh-native-souffle mut+alloc+free
175 119 56 8.4 osh-native-souffle mut+alloc+free+gc
176 124 52 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 8 2 3.5 dash -
20 12 8 4.3 bash -
18 11 7 3.4 zsh -
20 7 13 12.1 bumpleak/osh mut
20 17 3 12.5 _bin/cxx-opt+bumproot/osh mut
22 13 9 13.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 12 10 10.9 osh-native mut+alloc
22 16 7 11.3 osh-native mut+alloc+free
22 20 3 9.2 osh-native mut+alloc+free+gc
23 15 8 9.2 osh-native mut+alloc+free+gc+exit
25 12 13 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 18 7 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 14 6 10.6 osh-native-souffle mut+alloc
21 17 5 10.5 osh-native-souffle mut+alloc+free
21 17 5 8.4 osh-native-souffle mut+alloc+free+gc
22 20 3 8.7 osh-native-souffle mut+alloc+free+gc+exit