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.1 17.8 476,742 1,282 6 409,294 5 204,647 osh-native
parse.configure-cpython 35 4 11 12.0 17.7 476,742 1,282 6 408,794 5 204,397 osh-native-souffle
parse.configure-coreutils 154 21 70 41.1 45.8 1,653,330 4,764 12 1,591,976 7 795,988 osh-native
parse.configure-coreutils 144 25 67 44.6 49.5 1,653,329 4,764 12 1,030,678 6 769,423 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,933 180 2 75,266 1 37,633 osh-native
parse.abuild 13 1 2 2.6 8.1 101,933 180 2 75,136 1 37,568 osh-native-souffle
ex.compute-fib 28 0 1 2.1 8.1 579,597 22,608 12 50,000 0 2,910 osh-native
ex.compute-fib 22 0 2 2.1 7.5 579,597 22,608 12 50,000 0 2,848 osh-native-souffle
ex.bashcomp-parse-help 182 0 3 10.3 8.7 995,279 15,258 21 50,000 0 3,893 osh-native
ex.bashcomp-parse-help 174 0 4 10.3 8.3 995,278 15,258 21 50,000 0 3,838 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,309 277 3 85,502 1 42,751 osh-native
ex.abuild-print-help 21 1 2 2.8 8.5 116,309 277 3 85,378 1 42,689 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 19 4 3.0 bash -
105 60 52 3.4 zsh -
17 12 4 29.3 bumpleak/osh mut
19 19 0 29.8 _bin/cxx-opt+bumproot/osh mut
23 19 4 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 12 17 25.2 osh-native mut+alloc
31 18 13 25.7 osh-native mut+alloc+free
35 31 4 17.8 osh-native mut+alloc+free+gc
36 27 8 18.2 osh-native mut+alloc+free+gc+exit
43 23 19 32.9 _bin/cxx-opt+nopool/osh mut+alloc
49 36 12 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 13 13 24.8 osh-native-souffle mut+alloc
29 16 12 25.2 osh-native-souffle mut+alloc+free
35 23 11 17.7 osh-native-souffle mut+alloc+free+gc
34 25 8 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 73 4 3.0 bash -
375 237 158 3.4 zsh -
48 40 8 84.5 bumpleak/osh mut
59 51 8 85.4 _bin/cxx-opt+bumproot/osh mut
71 66 4 85.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 72 24 73.6 osh-native mut+alloc
106 74 31 75.3 osh-native mut+alloc+free
154 126 28 45.8 osh-native mut+alloc+free+gc
158 146 12 46.0 osh-native mut+alloc+free+gc+exit
140 92 48 98.5 _bin/cxx-opt+nopool/osh mut+alloc
231 187 44 61.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 65 24 72.9 osh-native-souffle mut+alloc
96 44 52 74.9 osh-native-souffle mut+alloc+free
144 128 16 49.5 osh-native-souffle mut+alloc+free+gc
150 141 8 50.3 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 -
6 6 0 2.9 bash -
8 0 7 3.3 zsh -
6 6 0 10.5 bumpleak/osh mut
7 4 4 11.9 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.2 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
13 4 9 8.1 osh-native-souffle mut+alloc+free+gc
9 9 0 8.4 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 20 4 3.3 zsh -
19 15 4 32.4 bumpleak/osh mut
27 22 4 32.8 _bin/cxx-opt+bumproot/osh mut
28 28 0 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 20 16 25.8 osh-native mut+alloc
38 29 8 26.2 osh-native mut+alloc+free
28 28 0 8.1 osh-native mut+alloc+free+gc
28 27 0 8.0 osh-native mut+alloc+free+gc+exit
54 29 25 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 8 25.6 osh-native-souffle mut+alloc
31 15 15 25.7 osh-native-souffle mut+alloc+free
22 21 0 7.5 osh-native-souffle mut+alloc+free+gc
21 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
76 67 8 3.3 bash -
170 117 52 54.4 bumpleak/osh mut
183 147 36 56.3 _bin/cxx-opt+bumproot/osh mut
195 139 55 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 138 73 47.1 osh-native mut+alloc
218 135 83 48.7 osh-native mut+alloc+free
182 101 81 8.7 osh-native mut+alloc+free+gc
183 123 60 8.7 osh-native mut+alloc+free+gc+exit
235 147 87 62.8 _bin/cxx-opt+nopool/osh mut+alloc
210 151 59 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 152 52 46.6 osh-native-souffle mut+alloc
210 135 75 48.3 osh-native-souffle mut+alloc+free
174 138 36 8.3 osh-native-souffle mut+alloc+free+gc
176 128 48 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
10 6 4 3.5 dash -
19 10 10 4.5 bash -
18 10 8 3.4 zsh -
19 6 13 11.9 bumpleak/osh mut
21 11 10 13.2 _bin/cxx-opt+bumproot/osh mut
21 11 10 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 8 13 10.9 osh-native mut+alloc
22 20 3 11.1 osh-native mut+alloc+free
22 19 3 9.2 osh-native mut+alloc+free+gc
23 21 2 9.2 osh-native mut+alloc+free+gc+exit
25 17 8 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 8 18 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 7 13 10.5 osh-native-souffle mut+alloc
21 10 12 10.9 osh-native-souffle mut+alloc+free
21 13 8 8.5 osh-native-souffle mut+alloc+free+gc
22 11 12 8.5 osh-native-souffle mut+alloc+free+gc+exit