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 4 10 12.0 18.0 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 32 4 10 12.0 17.4 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 142 23 58 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 136 22 60 44.5 49.5 1,653,338 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 9 1 1 2.6 8.8 101,942 180 2 75,030 1 37,515 osh-native
parse.abuild 9 1 2 2.4 8.0 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 29 0 2 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.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 181 0 4 10.9 8.8 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 183 0 4 10.9 8.3 1,017,203 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.7 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 20 1 2 2.8 8.4 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.6 dash -
24 23 1 3.1 bash -
99 60 45 3.3 zsh -
16 13 3 28.9 bumpleak/osh mut
19 16 3 29.1 _bin/cxx-opt+bumproot/osh mut
22 19 3 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 23 6 25.2 osh-native mut+alloc
31 18 13 25.8 osh-native mut+alloc+free
35 30 6 18.0 osh-native mut+alloc+free+gc
36 27 9 18.1 osh-native mut+alloc+free+gc+exit
47 28 19 32.5 _bin/cxx-opt+nopool/osh mut+alloc
47 37 9 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 17 9 24.8 osh-native-souffle mut+alloc
27 19 9 25.3 osh-native-souffle mut+alloc+free
32 24 8 17.4 osh-native-souffle mut+alloc+free+gc
34 27 7 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 74 4 3.3 bash -
359 176 203 3.5 zsh -
49 44 5 85.2 bumpleak/osh mut
60 51 9 85.1 _bin/cxx-opt+bumproot/osh mut
70 54 16 84.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 59 38 73.4 osh-native mut+alloc
104 84 20 75.5 osh-native mut+alloc+free
142 124 18 49.8 osh-native mut+alloc+free+gc
150 124 26 50.6 osh-native mut+alloc+free+gc+exit
138 98 40 99.0 _bin/cxx-opt+nopool/osh mut+alloc
196 167 29 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 59 29 73.3 osh-native-souffle mut+alloc
95 67 28 75.0 osh-native-souffle mut+alloc+free
136 110 26 49.5 osh-native-souffle mut+alloc+free+gc
137 109 28 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 3.0 bash -
7 4 3 3.3 zsh -
6 3 2 10.9 bumpleak/osh mut
7 4 3 11.3 _bin/cxx-opt+bumproot/osh mut
8 5 3 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 5 10.0 osh-native mut+alloc
8 4 4 10.1 osh-native mut+alloc+free
9 6 3 8.8 osh-native mut+alloc+free+gc
9 5 4 8.5 osh-native mut+alloc+free+gc+exit
11 9 2 11.5 _bin/cxx-opt+nopool/osh mut+alloc
11 9 2 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 4 3 9.6 osh-native-souffle mut+alloc
7 5 2 9.7 osh-native-souffle mut+alloc+free
9 6 3 8.0 osh-native-souffle mut+alloc+free+gc
9 6 3 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 10 0 1.6 dash -
29 28 1 3.0 bash -
23 16 7 3.3 zsh -
19 18 1 32.7 bumpleak/osh mut
25 21 4 31.6 _bin/cxx-opt+bumproot/osh mut
28 23 6 33.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 27 10 26.6 osh-native mut+alloc
37 28 9 26.6 osh-native mut+alloc+free
29 27 2 8.1 osh-native mut+alloc+free+gc
29 28 1 8.0 osh-native mut+alloc+free+gc+exit
53 38 15 36.1 _bin/cxx-opt+nopool/osh mut+alloc
38 34 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 18 12 26.1 osh-native-souffle mut+alloc
31 18 13 26.2 osh-native-souffle mut+alloc+free
22 21 1 7.6 osh-native-souffle mut+alloc+free+gc
21 19 2 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 68 5 3.1 bash -
166 126 40 56.1 bumpleak/osh mut
179 131 48 57.2 _bin/cxx-opt+bumproot/osh mut
194 126 68 57.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 141 70 48.7 osh-native mut+alloc
218 147 71 50.6 osh-native mut+alloc+free
181 124 57 8.8 osh-native mut+alloc+free+gc
185 137 48 8.9 osh-native mut+alloc+free+gc+exit
232 148 84 64.6 _bin/cxx-opt+nopool/osh mut+alloc
210 155 55 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 127 79 48.2 osh-native-souffle mut+alloc
210 149 61 50.0 osh-native-souffle mut+alloc+free
183 144 39 8.3 osh-native-souffle mut+alloc+free+gc
172 118 55 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
9 4 6 3.5 dash -
19 11 8 4.3 bash -
17 10 8 3.5 zsh -
18 8 11 12.3 bumpleak/osh mut
19 8 11 12.2 _bin/cxx-opt+bumproot/osh mut
21 10 11 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 9 12 11.1 osh-native mut+alloc
21 8 14 11.1 osh-native mut+alloc+free
22 11 11 8.7 osh-native mut+alloc+free+gc
22 11 12 8.9 osh-native mut+alloc+free+gc+exit
24 15 10 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 12 13 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 8 12 10.6 osh-native-souffle mut+alloc
20 9 12 10.7 osh-native-souffle mut+alloc+free
20 12 9 8.4 osh-native-souffle mut+alloc+free+gc
21 12 10 8.7 osh-native-souffle mut+alloc+free+gc+exit