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,766 1,282 6 406,618 5 203,309 osh-native
parse.configure-cpython 32 3 9 12.0 17.6 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 145 23 60 44.5 49.8 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 137 23 62 44.5 49.3 1,653,353 4,764 12 1,025,530 6 764,308 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,957 180 2 75,044 1 37,522 osh-native
parse.abuild 8 1 1 2.6 8.3 101,957 180 2 75,034 1 37,517 osh-native-souffle
ex.compute-fib 31 0 1 2.2 8.1 579,721 22,608 12 50,000 0 2,926 osh-native
ex.compute-fib 21 0 1 2.2 7.6 579,721 22,608 12 50,000 0 2,921 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 11.1 8.9 1,021,036 15,258 22 50,000 0 3,915 osh-native
ex.bashcomp-parse-help 175 0 4 11.1 8.4 1,021,035 15,258 22 50,000 0 3,915 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.8 116,340 277 3 85,262 1 42,631 osh-native
ex.abuild-print-help 21 1 2 2.8 8.8 116,340 277 3 85,252 1 42,626 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 4 2 1.6 dash -
23 20 3 2.9 bash -
100 55 51 3.4 zsh -
17 13 4 29.8 bumpleak/osh mut
20 16 4 28.9 _bin/cxx-opt+bumproot/osh mut
22 17 5 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 19 10 25.3 osh-native mut+alloc
31 23 8 25.7 osh-native mut+alloc+free
35 29 6 18.0 osh-native mut+alloc+free+gc
36 25 11 18.1 osh-native mut+alloc+free+gc+exit
42 26 16 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 37 10 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 20 6 24.9 osh-native-souffle mut+alloc
28 19 9 25.3 osh-native-souffle mut+alloc+free
32 23 9 17.6 osh-native-souffle mut+alloc+free+gc
33 28 5 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 21 0 1.6 dash -
78 77 1 3.1 bash -
362 190 192 3.5 zsh -
49 40 9 84.1 bumpleak/osh mut
60 52 8 84.9 _bin/cxx-opt+bumproot/osh mut
70 60 10 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
95 66 29 73.4 osh-native mut+alloc
105 68 37 75.4 osh-native mut+alloc+free
145 122 23 49.8 osh-native mut+alloc+free+gc
160 139 21 50.5 osh-native mut+alloc+free+gc+exit
139 94 45 98.9 _bin/cxx-opt+nopool/osh mut+alloc
215 187 28 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 55 33 73.1 osh-native-souffle mut+alloc
96 66 30 74.9 osh-native-souffle mut+alloc+free
137 112 25 49.3 osh-native-souffle mut+alloc+free+gc
138 108 30 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 5 0 3.0 bash -
7 5 2 3.3 zsh -
6 3 3 11.7 bumpleak/osh mut
6 4 3 12.5 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 10.0 osh-native mut+alloc
8 5 4 10.2 osh-native mut+alloc+free
9 8 1 8.7 osh-native mut+alloc+free+gc
9 6 3 8.8 osh-native mut+alloc+free+gc+exit
11 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 9 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 3 4 9.7 osh-native-souffle mut+alloc
8 5 3 9.8 osh-native-souffle mut+alloc+free
8 5 3 8.3 osh-native-souffle mut+alloc+free+gc
8 4 4 8.3 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
11 11 0 1.4 dash -
28 27 1 3.0 bash -
23 20 3 3.3 zsh -
18 15 3 31.3 bumpleak/osh mut
26 22 4 33.4 _bin/cxx-opt+bumproot/osh mut
29 22 7 31.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 27 9 26.5 osh-native mut+alloc
38 28 10 26.7 osh-native mut+alloc+free
31 27 4 8.1 osh-native mut+alloc+free+gc
28 27 1 8.1 osh-native mut+alloc+free+gc+exit
54 34 20 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 35 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 22 9 25.8 osh-native-souffle mut+alloc
31 16 14 26.1 osh-native-souffle mut+alloc+free
21 18 3 7.6 osh-native-souffle mut+alloc+free+gc
21 19 3 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 71 2 3.1 bash -
167 122 45 56.3 bumpleak/osh mut
183 126 57 56.3 _bin/cxx-opt+bumproot/osh mut
195 130 65 58.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 137 75 49.0 osh-native mut+alloc
218 142 76 50.9 osh-native mut+alloc+free
182 130 51 8.9 osh-native mut+alloc+free+gc
182 127 55 8.9 osh-native mut+alloc+free+gc+exit
235 172 63 64.5 _bin/cxx-opt+nopool/osh mut+alloc
210 157 53 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
202 136 66 48.6 osh-native-souffle mut+alloc
211 145 66 50.3 osh-native-souffle mut+alloc+free
175 125 49 8.4 osh-native-souffle mut+alloc+free+gc
176 119 57 8.5 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 3 7 3.4 dash -
19 13 6 4.2 bash -
17 8 9 3.5 zsh -
19 6 13 12.6 bumpleak/osh mut
19 11 8 13.9 _bin/cxx-opt+bumproot/osh mut
20 7 13 13.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 11 11.1 osh-native mut+alloc
22 11 12 11.3 osh-native mut+alloc+free
22 13 10 8.8 osh-native mut+alloc+free+gc
23 12 11 9.0 osh-native mut+alloc+free+gc+exit
24 10 15 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 15 10 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 9 11 10.5 osh-native-souffle mut+alloc
21 11 10 10.7 osh-native-souffle mut+alloc+free
21 11 11 8.8 osh-native-souffle mut+alloc+free+gc
21 9 12 8.7 osh-native-souffle mut+alloc+free+gc+exit