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 37 4 10 12.0 17.8 476,752 1,282 6 406,606 5 203,303 osh-native
parse.configure-cpython 34 4 10 12.0 17.7 476,752 1,282 6 406,202 5 203,101 osh-native-souffle
parse.configure-coreutils 174 28 86 44.5 49.8 1,653,340 4,764 12 1,025,528 6 764,307 osh-native
parse.configure-coreutils 149 26 72 44.5 49.4 1,653,339 4,764 12 1,025,398 6 764,242 osh-native-souffle
parse.abuild 10 1 1 2.6 8.8 101,943 180 2 75,032 1 37,516 osh-native
parse.abuild 9 1 2 2.4 7.9 101,943 180 3 87,094 1 43,547 osh-native-souffle
ex.compute-fib 28 0 2 2.1 7.9 579,607 22,608 12 50,000 0 2,920 osh-native
ex.compute-fib 22 0 2 2.1 7.7 579,607 22,608 12 50,000 0 2,859 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 10.3 8.7 995,289 15,258 21 50,000 0 3,902 osh-native
ex.bashcomp-parse-help 174 0 4 10.3 8.1 995,288 15,258 21 50,000 0 3,845 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 8.9 116,319 277 3 85,250 1 42,625 osh-native
ex.abuild-print-help 22 1 2 2.8 8.7 116,319 277 3 85,126 1 42,563 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 0 3.1 bash -
106 69 44 3.3 zsh -
16 12 4 28.6 bumpleak/osh mut
20 16 4 28.7 _bin/cxx-opt+bumproot/osh mut
22 18 4 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.3 osh-native mut+alloc
32 23 8 25.7 osh-native mut+alloc+free
37 32 4 17.8 osh-native mut+alloc+free+gc
37 32 4 18.1 osh-native mut+alloc+free+gc+exit
44 32 12 32.2 _bin/cxx-opt+nopool/osh mut+alloc
49 33 16 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 17 9 24.9 osh-native-souffle mut+alloc
29 24 4 25.3 osh-native-souffle mut+alloc+free
34 29 4 17.7 osh-native-souffle mut+alloc+free+gc
33 26 7 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
22 21 0 1.6 dash -
78 74 4 3.1 bash -
377 225 172 3.4 zsh -
50 33 17 84.6 bumpleak/osh mut
61 53 8 86.0 _bin/cxx-opt+bumproot/osh mut
70 50 19 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 64 32 73.4 osh-native mut+alloc
106 85 20 75.2 osh-native mut+alloc+free
174 150 24 49.8 osh-native mut+alloc+free+gc
174 146 28 50.5 osh-native mut+alloc+free+gc+exit
138 97 40 98.0 _bin/cxx-opt+nopool/osh mut+alloc
228 196 32 67.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 44 44 73.1 osh-native-souffle mut+alloc
95 55 40 74.8 osh-native-souffle mut+alloc+free
149 129 20 49.4 osh-native-souffle mut+alloc+free+gc
156 144 12 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 0 2 1.3 dash -
6 3 3 2.9 bash -
8 4 4 3.3 zsh -
6 3 3 10.3 bumpleak/osh mut
7 4 4 11.9 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
9 0 9 10.2 osh-native mut+alloc+free
10 6 3 8.8 osh-native mut+alloc+free+gc
10 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.4 osh-native-souffle mut+alloc
8 8 0 9.8 osh-native-souffle mut+alloc+free
9 9 0 7.9 osh-native-souffle mut+alloc+free+gc
9 9 0 7.9 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 28 0 2.9 bash -
24 24 0 3.4 zsh -
19 18 0 32.1 bumpleak/osh mut
26 26 0 32.8 _bin/cxx-opt+bumproot/osh mut
28 28 0 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 32 4 26.3 osh-native mut+alloc
38 38 0 26.6 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
29 29 0 8.1 osh-native mut+alloc+free+gc+exit
54 38 17 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 23 8 26.0 osh-native-souffle mut+alloc
32 18 13 26.2 osh-native-souffle mut+alloc+free
22 14 7 7.7 osh-native-souffle mut+alloc+free+gc
22 21 0 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 73 0 3.1 bash -
169 109 60 54.8 bumpleak/osh mut
183 139 44 55.2 _bin/cxx-opt+bumproot/osh mut
195 151 44 56.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 138 75 47.3 osh-native mut+alloc
219 179 40 49.0 osh-native mut+alloc+free
184 123 60 8.7 osh-native mut+alloc+free+gc
181 141 40 8.9 osh-native mut+alloc+free+gc+exit
236 156 80 63.6 _bin/cxx-opt+nopool/osh mut+alloc
221 169 52 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 116 88 46.9 osh-native-souffle mut+alloc
214 133 81 48.6 osh-native-souffle mut+alloc+free
174 147 28 8.1 osh-native-souffle mut+alloc+free+gc
176 120 56 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
10 6 5 3.4 dash -
20 17 4 4.3 bash -
18 11 8 3.4 zsh -
20 19 2 12.5 bumpleak/osh mut
20 11 9 13.9 _bin/cxx-opt+bumproot/osh mut
22 14 8 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 9 12 11.1 osh-native mut+alloc
23 15 8 11.1 osh-native mut+alloc+free
23 13 10 8.9 osh-native mut+alloc+free+gc
24 22 2 9.0 osh-native mut+alloc+free+gc+exit
25 12 13 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 11 15 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 12 10 10.5 osh-native-souffle mut+alloc
22 17 5 10.6 osh-native-souffle mut+alloc+free
22 17 5 8.7 osh-native-souffle mut+alloc+free+gc
22 13 10 8.7 osh-native-souffle mut+alloc+free+gc+exit