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 36 4 10 12.0 17.8 476,711 1,282 6 408,792 5 204,396 osh-native
parse.configure-cpython 35 5 11 12.0 17.6 476,711 1,282 6 408,662 5 204,331 osh-native-souffle
parse.configure-coreutils 164 26 77 44.6 49.9 1,653,299 4,764 12 1,030,676 6 769,422 osh-native
parse.configure-coreutils 153 27 74 46.1 51.1 1,653,298 4,764 12 1,069,028 6 798,595 osh-native-souffle
parse.abuild 9 1 1 2.6 8.4 101,902 180 2 75,134 1 37,567 osh-native
parse.abuild 8 1 1 2.6 8.1 101,902 180 2 75,004 1 37,502 osh-native-souffle
ex.compute-fib 28 0 2 2.4 7.9 584,167 22,608 12 50,000 0 2,844 osh-native
ex.compute-fib 23 0 1 2.4 7.3 584,167 22,608 12 50,000 0 2,782 osh-native-souffle
ex.bashcomp-parse-help 177 0 4 10.3 8.5 995,244 12,911 21 50,000 0 3,834 osh-native
ex.bashcomp-parse-help 172 0 4 10.3 8.3 995,243 12,911 21 50,000 0 3,774 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,311 270 3 85,370 1 42,685 osh-native
ex.abuild-print-help 21 1 2 2.8 8.4 116,311 270 3 85,246 1 42,623 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 -
23 22 1 3.1 bash -
102 58 51 3.5 zsh -
17 12 5 28.0 bumpleak/osh mut
19 14 6 29.8 _bin/cxx-opt+bumproot/osh mut
22 11 11 29.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 20 10 25.2 osh-native mut+alloc
32 21 11 25.6 osh-native mut+alloc+free
36 30 6 17.8 osh-native mut+alloc+free+gc
38 32 6 18.0 osh-native mut+alloc+free+gc+exit
41 30 11 32.4 _bin/cxx-opt+nopool/osh mut+alloc
51 44 7 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 17 9 24.8 osh-native-souffle mut+alloc
29 18 11 25.2 osh-native-souffle mut+alloc+free
35 28 7 17.6 osh-native-souffle mut+alloc+free+gc
35 29 6 17.4 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 76 2 3.1 bash -
369 195 195 3.5 zsh -
49 41 8 84.8 bumpleak/osh mut
59 49 10 84.8 _bin/cxx-opt+bumproot/osh mut
71 53 18 86.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 73 25 73.4 osh-native mut+alloc
104 71 33 75.3 osh-native mut+alloc+free
164 143 21 49.9 osh-native mut+alloc+free+gc
167 145 22 50.6 osh-native mut+alloc+free+gc+exit
137 92 45 98.9 _bin/cxx-opt+nopool/osh mut+alloc
232 198 34 66.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 58 29 73.2 osh-native-souffle mut+alloc
95 62 33 74.9 osh-native-souffle mut+alloc+free
153 132 21 51.1 osh-native-souffle mut+alloc+free+gc
158 131 27 51.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 1 1 1.3 dash -
5 4 1 2.9 bash -
7 4 3 3.1 zsh -
6 2 4 10.5 bumpleak/osh mut
7 5 2 11.6 _bin/cxx-opt+bumproot/osh mut
7 4 3 11.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 10.1 osh-native mut+alloc
9 6 3 10.1 osh-native mut+alloc+free
9 6 3 8.4 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
12 5 7 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 10 2 9.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.6 osh-native-souffle mut+alloc
8 3 5 9.7 osh-native-souffle mut+alloc+free
8 7 2 8.1 osh-native-souffle mut+alloc+free+gc
9 8 1 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
11 10 1 1.6 dash -
28 27 1 3.0 bash -
23 20 3 3.3 zsh -
20 16 4 32.6 bumpleak/osh mut
27 21 5 32.2 _bin/cxx-opt+bumproot/osh mut
28 24 4 31.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 29 7 26.2 osh-native mut+alloc
38 30 8 26.6 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
28 26 2 8.0 osh-native mut+alloc+free+gc+exit
53 36 17 36.0 _bin/cxx-opt+nopool/osh mut+alloc
38 35 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 23 8 25.8 osh-native-souffle mut+alloc
32 19 14 26.2 osh-native-souffle mut+alloc+free
23 20 3 7.3 osh-native-souffle mut+alloc+free+gc
22 21 1 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
72 68 4 3.0 bash -
163 113 50 53.8 bumpleak/osh mut
175 121 54 55.0 _bin/cxx-opt+bumproot/osh mut
189 130 59 55.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
205 148 56 47.0 osh-native mut+alloc
214 133 81 48.7 osh-native mut+alloc+free
177 127 49 8.5 osh-native mut+alloc+free+gc
178 117 61 8.7 osh-native mut+alloc+free+gc+exit
229 155 74 62.7 _bin/cxx-opt+nopool/osh mut+alloc
207 156 51 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
199 127 72 46.6 osh-native-souffle mut+alloc
205 136 70 48.2 osh-native-souffle mut+alloc+free
172 125 47 8.3 osh-native-souffle mut+alloc+free+gc
171 124 47 8.1 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 8 12 4.5 bash -
17 9 9 3.5 zsh -
18 8 10 13.1 bumpleak/osh mut
20 10 10 12.6 _bin/cxx-opt+bumproot/osh mut
20 10 11 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 9 13 11.0 osh-native mut+alloc
22 14 9 11.1 osh-native mut+alloc+free
22 10 13 9.0 osh-native mut+alloc+free+gc
23 11 12 9.0 osh-native mut+alloc+free+gc+exit
24 15 9 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 16 9 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 10 10 10.5 osh-native-souffle mut+alloc
21 12 10 10.6 osh-native-souffle mut+alloc+free
21 9 13 8.4 osh-native-souffle mut+alloc+free+gc
22 11 11 8.5 osh-native-souffle mut+alloc+free+gc+exit