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 41 6 14 12.0 17.7 476,711 1,282 6 408,792 5 204,396 osh-native
parse.configure-cpython 37 6 13 12.0 17.6 476,711 1,282 6 408,662 5 204,331 osh-native-souffle
parse.configure-coreutils 185 29 94 44.6 49.9 1,653,299 4,764 12 1,030,676 6 769,422 osh-native
parse.configure-coreutils 169 30 89 46.1 51.4 1,653,298 4,764 12 1,069,028 6 798,595 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,902 180 2 75,134 1 37,567 osh-native
parse.abuild 9 1 1 2.6 8.3 101,902 180 2 75,004 1 37,502 osh-native-souffle
ex.compute-fib 28 0 2 2.4 8.0 584,167 22,608 12 50,000 0 2,844 osh-native
ex.compute-fib 23 0 2 2.4 7.5 584,167 22,608 12 50,000 0 2,782 osh-native-souffle
ex.bashcomp-parse-help 182 0 5 10.3 8.7 995,244 12,911 21 50,000 0 3,834 osh-native
ex.bashcomp-parse-help 174 0 5 10.3 8.3 995,243 12,911 21 50,000 0 3,774 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,311 270 3 85,370 1 42,685 osh-native
ex.abuild-print-help 22 1 2 2.8 8.5 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 5 1 1.6 dash -
23 22 1 3.1 bash -
103 57 53 3.4 zsh -
16 11 5 29.4 bumpleak/osh mut
20 14 6 30.2 _bin/cxx-opt+bumproot/osh mut
22 18 4 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 20 9 24.9 osh-native mut+alloc
32 21 11 25.6 osh-native mut+alloc+free
41 35 6 17.7 osh-native mut+alloc+free+gc
41 40 1 18.0 osh-native mut+alloc+free+gc+exit
43 26 17 32.6 _bin/cxx-opt+nopool/osh mut+alloc
59 48 11 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 16 11 24.8 osh-native-souffle mut+alloc
28 21 7 25.3 osh-native-souffle mut+alloc+free
37 31 6 17.6 osh-native-souffle mut+alloc+free+gc
41 36 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 18 3 1.6 dash -
78 76 2 3.3 bash -
370 195 198 3.5 zsh -
50 40 10 84.8 bumpleak/osh mut
61 55 6 85.2 _bin/cxx-opt+bumproot/osh mut
70 59 11 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 71 26 73.4 osh-native mut+alloc
107 74 33 75.2 osh-native mut+alloc+free
185 156 29 49.9 osh-native mut+alloc+free+gc
186 161 26 50.6 osh-native mut+alloc+free+gc+exit
136 94 42 98.9 _bin/cxx-opt+nopool/osh mut+alloc
258 227 31 66.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 58 31 73.0 osh-native-souffle mut+alloc
98 66 32 75.0 osh-native-souffle mut+alloc+free
169 143 26 51.4 osh-native-souffle mut+alloc+free+gc
177 145 32 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 2 0 1.3 dash -
6 4 1 3.0 bash -
7 4 3 3.4 zsh -
6 5 1 10.3 bumpleak/osh mut
7 6 1 11.9 _bin/cxx-opt+bumproot/osh mut
7 5 2 10.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 5 4 10.2 osh-native mut+alloc
9 5 4 9.8 osh-native mut+alloc+free
9 7 2 8.7 osh-native mut+alloc+free+gc
9 7 2 8.7 osh-native mut+alloc+free+gc+exit
12 7 5 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 6 2 9.6 osh-native-souffle mut+alloc
8 6 2 9.8 osh-native-souffle mut+alloc+free
9 7 2 8.3 osh-native-souffle mut+alloc+free+gc
9 6 3 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
10 9 1 1.4 dash -
29 29 0 2.8 bash -
23 15 8 3.3 zsh -
19 15 4 32.6 bumpleak/osh mut
27 24 3 32.8 _bin/cxx-opt+bumproot/osh mut
29 22 7 31.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 24 13 26.3 osh-native mut+alloc
38 29 10 26.6 osh-native mut+alloc+free
28 26 3 8.0 osh-native mut+alloc+free+gc
28 25 3 8.0 osh-native mut+alloc+free+gc+exit
54 38 15 36.0 _bin/cxx-opt+nopool/osh mut+alloc
39 35 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 23 8 25.8 osh-native-souffle mut+alloc
33 21 12 26.2 osh-native-souffle mut+alloc+free
23 20 3 7.5 osh-native-souffle mut+alloc+free+gc
23 22 1 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
74 71 3 3.1 bash -
164 106 58 55.3 bumpleak/osh mut
177 124 53 55.2 _bin/cxx-opt+bumproot/osh mut
192 123 69 56.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 144 67 47.0 osh-native mut+alloc
218 159 59 48.7 osh-native mut+alloc+free
182 130 52 8.7 osh-native mut+alloc+free+gc
183 133 50 8.8 osh-native mut+alloc+free+gc+exit
227 152 75 62.8 _bin/cxx-opt+nopool/osh mut+alloc
225 176 49 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 129 73 46.6 osh-native-souffle mut+alloc
212 138 74 48.2 osh-native-souffle mut+alloc+free
174 128 46 8.3 osh-native-souffle mut+alloc+free+gc
174 113 61 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 5 5 3.4 dash -
20 6 14 4.5 bash -
17 8 10 3.5 zsh -
20 6 15 12.8 bumpleak/osh mut
22 10 12 13.4 _bin/cxx-opt+bumproot/osh mut
20 12 9 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
23 12 12 11.0 osh-native mut+alloc
23 13 10 11.1 osh-native mut+alloc+free
23 10 13 9.0 osh-native mut+alloc+free+gc
23 12 12 9.0 osh-native mut+alloc+free+gc+exit
25 14 12 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 15 12 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 7 14 10.5 osh-native-souffle mut+alloc
23 11 12 10.6 osh-native-souffle mut+alloc+free
22 11 12 8.5 osh-native-souffle mut+alloc+free+gc
23 13 10 8.5 osh-native-souffle mut+alloc+free+gc+exit