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 39 5 12 12.1 18.1 476,742 1,282 6 409,294 5 204,647 osh-native
parse.configure-cpython 34 4 10 12.0 17.6 476,742 1,282 6 408,794 5 204,397 osh-native-souffle
parse.configure-coreutils 172 25 86 41.1 45.8 1,653,330 4,764 12 1,591,976 7 795,988 osh-native
parse.configure-coreutils 141 24 65 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 8 1 1 2.6 8.3 101,933 180 2 75,136 1 37,568 osh-native-souffle
ex.compute-fib 29 0 2 2.4 8.0 584,198 22,608 12 50,000 0 2,910 osh-native
ex.compute-fib 23 0 2 2.4 7.6 584,198 22,608 12 50,000 0 2,848 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 10.3 8.9 995,279 12,911 21 50,000 0 3,898 osh-native
ex.bashcomp-parse-help 176 0 4 10.3 8.4 995,278 12,911 21 50,000 0 3,838 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,348 270 3 85,502 1 42,751 osh-native
ex.abuild-print-help 22 1 2 2.8 8.7 116,348 270 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
7 7 0 1.6 dash -
23 23 0 3.0 bash -
105 73 40 3.3 zsh -
17 8 8 29.9 bumpleak/osh mut
20 12 8 30.2 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 13 17 25.2 osh-native mut+alloc
33 12 20 25.7 osh-native mut+alloc+free
39 34 4 18.1 osh-native mut+alloc+free+gc
39 31 8 18.1 osh-native mut+alloc+free+gc+exit
43 23 19 32.0 _bin/cxx-opt+nopool/osh mut+alloc
49 41 8 22.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 18 9 24.9 osh-native-souffle mut+alloc
30 15 15 25.3 osh-native-souffle mut+alloc+free
34 29 4 17.6 osh-native-souffle mut+alloc+free+gc
36 28 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
22 21 0 1.6 dash -
78 74 4 3.1 bash -
385 195 210 3.5 zsh -
50 41 8 84.9 bumpleak/osh mut
61 57 4 84.9 _bin/cxx-opt+bumproot/osh mut
70 58 12 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 61 37 73.5 osh-native mut+alloc
107 62 45 75.4 osh-native mut+alloc+free
172 148 24 45.8 osh-native mut+alloc+free+gc
172 152 20 46.1 osh-native mut+alloc+free+gc+exit
142 95 47 98.6 _bin/cxx-opt+nopool/osh mut+alloc
242 194 47 60.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 70 17 73.0 osh-native-souffle mut+alloc
96 52 44 74.9 osh-native-souffle mut+alloc+free
141 101 40 49.5 osh-native-souffle mut+alloc+free+gc
153 132 20 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 0 2 1.4 dash -
6 3 3 2.9 bash -
8 0 7 3.3 zsh -
6 0 6 10.2 bumpleak/osh mut
7 7 0 11.2 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.1 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
9 5 5 8.5 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
12 12 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
9 6 3 9.7 osh-native-souffle mut+alloc+free
8 0 8 8.3 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
11 10 0 1.4 dash -
28 24 4 2.9 bash -
24 8 16 3.3 zsh -
19 15 4 32.3 bumpleak/osh mut
25 25 0 33.4 _bin/cxx-opt+bumproot/osh mut
28 16 12 31.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 28 8 26.3 osh-native mut+alloc
40 36 4 26.6 osh-native mut+alloc+free
29 25 4 8.0 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
55 39 16 36.6 _bin/cxx-opt+nopool/osh mut+alloc
37 29 8 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 13 17 25.8 osh-native-souffle mut+alloc
33 28 4 26.3 osh-native-souffle mut+alloc+free
23 19 4 7.6 osh-native-souffle mut+alloc+free+gc
22 18 4 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 74 0 3.1 bash -
168 88 80 55.5 bumpleak/osh mut
182 109 73 54.5 _bin/cxx-opt+bumproot/osh mut
194 129 65 56.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 123 87 47.0 osh-native mut+alloc
220 143 76 48.8 osh-native mut+alloc+free
182 142 40 8.9 osh-native mut+alloc+free+gc
182 129 53 8.8 osh-native mut+alloc+free+gc+exit
233 178 55 63.3 _bin/cxx-opt+nopool/osh mut+alloc
213 150 63 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 128 76 46.6 osh-native-souffle mut+alloc
212 140 72 48.3 osh-native-souffle mut+alloc+free
176 132 44 8.4 osh-native-souffle mut+alloc+free+gc
178 99 79 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 9 1 3.5 dash -
20 12 9 4.3 bash -
18 11 8 3.5 zsh -
19 10 10 11.7 bumpleak/osh mut
20 11 9 13.7 _bin/cxx-opt+bumproot/osh mut
21 17 4 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 20 2 11.1 osh-native mut+alloc
23 14 10 11.1 osh-native mut+alloc+free
23 14 10 9.0 osh-native mut+alloc+free+gc
23 14 10 9.2 osh-native mut+alloc+free+gc+exit
26 19 7 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 20 6 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 11 10 10.5 osh-native-souffle mut+alloc
22 18 5 10.7 osh-native-souffle mut+alloc+free
22 19 3 8.7 osh-native-souffle mut+alloc+free+gc
23 18 6 8.5 osh-native-souffle mut+alloc+free+gc+exit