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 4 10 12.0 17.8 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 33 4 10 12.0 17.4 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 143 22 57 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 140 23 64 44.5 49.4 1,653,338 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 10 1 2 2.6 8.7 101,942 180 2 75,030 1 37,515 osh-native
parse.abuild 9 1 2 2.4 7.9 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.1 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 2 2.2 7.5 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 182 0 3 10.9 8.9 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 175 0 4 10.9 8.4 1,017,203 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 9.0 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 20 1 2 2.8 8.7 116,318 277 3 85,124 1 42,562 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.4 dash -
23 23 0 3.0 bash -
100 53 54 3.4 zsh -
16 10 6 28.1 bumpleak/osh mut
20 18 2 28.3 _bin/cxx-opt+bumproot/osh mut
22 16 7 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 20 9 25.0 osh-native mut+alloc
31 19 12 25.6 osh-native mut+alloc+free
36 29 7 17.8 osh-native mut+alloc+free+gc
36 26 10 18.1 osh-native mut+alloc+free+gc+exit
42 27 15 32.4 _bin/cxx-opt+nopool/osh mut+alloc
48 37 11 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 14 12 24.6 osh-native-souffle mut+alloc
28 17 11 25.3 osh-native-souffle mut+alloc+free
33 24 9 17.4 osh-native-souffle mut+alloc+free+gc
34 28 6 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 -
77 74 3 3.3 bash -
363 188 197 3.7 zsh -
48 40 8 85.8 bumpleak/osh mut
60 53 7 84.5 _bin/cxx-opt+bumproot/osh mut
69 56 13 86.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 70 26 73.5 osh-native mut+alloc
103 73 31 75.4 osh-native mut+alloc+free
143 122 20 49.8 osh-native mut+alloc+free+gc
148 122 26 50.5 osh-native mut+alloc+free+gc+exit
135 99 37 99.0 _bin/cxx-opt+nopool/osh mut+alloc
202 167 36 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 51 36 73.0 osh-native-souffle mut+alloc
95 61 34 75.0 osh-native-souffle mut+alloc+free
140 117 23 49.4 osh-native-souffle mut+alloc+free+gc
142 120 22 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 2 0 1.4 dash -
5 4 1 2.9 bash -
7 5 2 3.4 zsh -
6 3 3 11.8 bumpleak/osh mut
7 4 2 12.6 _bin/cxx-opt+bumproot/osh mut
7 5 3 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 5 10.0 osh-native mut+alloc
9 3 6 10.0 osh-native mut+alloc+free
10 6 4 8.7 osh-native mut+alloc+free+gc
9 6 3 8.4 osh-native mut+alloc+free+gc+exit
12 9 3 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 9 2 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.7 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
9 7 2 7.9 osh-native-souffle mut+alloc+free+gc
10 5 5 8.1 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.6 dash -
28 27 1 3.0 bash -
23 16 7 3.3 zsh -
18 13 5 31.2 bumpleak/osh mut
26 22 3 31.9 _bin/cxx-opt+bumproot/osh mut
29 24 5 31.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 24 12 26.3 osh-native mut+alloc
38 27 11 26.6 osh-native mut+alloc+free
28 26 2 8.1 osh-native mut+alloc+free+gc
28 22 6 8.0 osh-native mut+alloc+free+gc+exit
55 42 13 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 36 1 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 22 7 26.0 osh-native-souffle mut+alloc
31 21 10 26.1 osh-native-souffle mut+alloc+free
22 21 1 7.5 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
73 70 3 3.1 bash -
167 112 55 56.1 bumpleak/osh mut
181 134 47 57.0 _bin/cxx-opt+bumproot/osh mut
195 130 65 58.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 150 64 48.6 osh-native mut+alloc
219 139 80 50.6 osh-native mut+alloc+free
182 133 49 8.9 osh-native mut+alloc+free+gc
183 140 43 8.9 osh-native mut+alloc+free+gc+exit
233 156 77 64.5 _bin/cxx-opt+nopool/osh mut+alloc
211 161 50 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 128 76 48.2 osh-native-souffle mut+alloc
211 130 81 50.2 osh-native-souffle mut+alloc+free
175 132 43 8.4 osh-native-souffle mut+alloc+free+gc
174 124 50 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 4 6 3.4 dash -
19 12 7 4.5 bash -
17 6 12 3.5 zsh -
19 11 8 12.6 bumpleak/osh mut
19 9 11 12.3 _bin/cxx-opt+bumproot/osh mut
19 10 9 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 11 10 11.1 osh-native mut+alloc
21 9 13 11.3 osh-native mut+alloc+free
21 10 12 9.0 osh-native mut+alloc+free+gc
22 13 9 9.2 osh-native mut+alloc+free+gc+exit
24 14 11 12.8 _bin/cxx-opt+nopool/osh mut+alloc
24 13 12 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 8 11 10.6 osh-native-souffle mut+alloc
20 9 11 10.9 osh-native-souffle mut+alloc+free
20 10 11 8.7 osh-native-souffle mut+alloc+free+gc
21 10 11 8.7 osh-native-souffle mut+alloc+free+gc+exit