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.8 476,761 1,282 6 406,608 5 203,304 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,761 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 149 24 63 44.5 49.8 1,653,349 4,764 12 1,025,530 6 764,308 osh-native
parse.configure-coreutils 138 26 62 44.5 49.4 1,653,348 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,952 180 2 75,034 1 37,517 osh-native
parse.abuild 9 1 2 2.4 8.0 101,952 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.0 579,616 22,608 12 50,000 0 2,921 osh-native
ex.compute-fib 22 0 1 2.2 7.6 579,616 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 182 0 3 10.9 8.9 1,017,214 15,258 21 50,000 0 3,902 osh-native
ex.bashcomp-parse-help 172 0 3 10.9 8.4 1,017,213 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,328 277 3 85,252 1 42,626 osh-native
ex.abuild-print-help 20 1 2 2.8 8.7 116,328 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 5 1 1.4 dash -
23 21 2 3.0 bash -
102 51 58 3.4 zsh -
17 15 2 29.4 bumpleak/osh mut
19 17 3 29.9 _bin/cxx-opt+bumproot/osh mut
23 20 3 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 12 25.2 osh-native mut+alloc
31 19 12 25.7 osh-native mut+alloc+free
35 26 9 17.8 osh-native mut+alloc+free+gc
36 29 7 18.2 osh-native mut+alloc+free+gc+exit
42 27 15 32.5 _bin/cxx-opt+nopool/osh mut+alloc
47 38 9 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 16 11 24.9 osh-native-souffle mut+alloc
29 19 10 25.2 osh-native-souffle mut+alloc+free
32 29 3 17.4 osh-native-souffle mut+alloc+free+gc
33 23 10 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 19 2 1.6 dash -
78 76 2 3.3 bash -
362 187 197 3.5 zsh -
49 46 3 85.5 bumpleak/osh mut
60 53 7 84.6 _bin/cxx-opt+bumproot/osh mut
71 63 8 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 64 34 73.7 osh-native mut+alloc
104 66 38 75.4 osh-native mut+alloc+free
149 132 17 49.8 osh-native mut+alloc+free+gc
152 133 19 50.5 osh-native mut+alloc+free+gc+exit
135 96 39 99.0 _bin/cxx-opt+nopool/osh mut+alloc
212 183 29 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
90 55 35 73.2 osh-native-souffle mut+alloc
97 68 29 75.0 osh-native-souffle mut+alloc+free
138 118 20 49.4 osh-native-souffle mut+alloc+free+gc
148 131 17 50.2 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 1 1 1.3 dash -
5 4 2 2.9 bash -
7 2 5 3.3 zsh -
6 4 2 10.4 bumpleak/osh mut
6 4 3 12.3 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 3 10.2 osh-native mut+alloc
9 5 4 10.1 osh-native mut+alloc+free
9 6 3 8.7 osh-native mut+alloc+free+gc
9 7 2 8.5 osh-native mut+alloc+free+gc+exit
12 7 5 11.5 _bin/cxx-opt+nopool/osh mut+alloc
11 7 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 3 9.6 osh-native-souffle mut+alloc
8 5 3 9.8 osh-native-souffle mut+alloc+free
9 7 2 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.6 dash -
29 28 1 3.0 bash -
23 18 5 3.1 zsh -
18 16 2 30.8 bumpleak/osh mut
27 22 5 33.2 _bin/cxx-opt+bumproot/osh mut
28 23 5 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 30 7 26.3 osh-native mut+alloc
38 27 11 26.6 osh-native mut+alloc+free
28 25 3 8.0 osh-native mut+alloc+free+gc
28 25 3 7.9 osh-native mut+alloc+free+gc+exit
54 38 16 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 34 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 9 26.0 osh-native-souffle mut+alloc
31 20 11 26.1 osh-native-souffle mut+alloc+free
22 19 3 7.6 osh-native-souffle mut+alloc+free+gc
21 19 2 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
72 68 4 3.1 bash -
167 116 51 56.8 bumpleak/osh mut
182 131 51 56.2 _bin/cxx-opt+bumproot/osh mut
194 138 56 58.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 146 66 48.7 osh-native mut+alloc
220 145 75 50.4 osh-native mut+alloc+free
182 132 50 8.9 osh-native mut+alloc+free+gc
181 124 57 8.8 osh-native mut+alloc+free+gc+exit
232 151 81 64.6 _bin/cxx-opt+nopool/osh mut+alloc
211 172 39 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
208 143 65 48.3 osh-native-souffle mut+alloc
212 134 78 50.3 osh-native-souffle mut+alloc+free
172 128 44 8.4 osh-native-souffle mut+alloc+free+gc
174 114 60 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 5 3.4 dash -
19 8 12 4.5 bash -
17 7 10 3.3 zsh -
19 7 12 12.3 bumpleak/osh mut
21 10 12 13.5 _bin/cxx-opt+bumproot/osh mut
20 9 11 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 13 8 11.0 osh-native mut+alloc
22 10 13 11.1 osh-native mut+alloc+free
22 12 10 9.2 osh-native mut+alloc+free+gc
22 10 13 9.0 osh-native mut+alloc+free+gc+exit
24 12 12 12.8 _bin/cxx-opt+nopool/osh mut+alloc
24 13 12 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 9 11 10.6 osh-native-souffle mut+alloc
21 8 13 10.6 osh-native-souffle mut+alloc+free
20 11 10 8.7 osh-native-souffle mut+alloc+free+gc
21 9 12 8.7 osh-native-souffle mut+alloc+free+gc+exit