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 18.0 476,742 1,282 6 409,294 5 204,647 osh-native
parse.configure-cpython 33 3 9 12.0 17.7 476,742 1,282 6 408,794 5 204,397 osh-native-souffle
parse.configure-coreutils 166 24 80 41.1 45.8 1,653,330 4,764 12 1,591,976 7 795,988 osh-native
parse.configure-coreutils 139 24 62 44.6 49.7 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 28 0 1 2.4 8.0 584,198 22,608 12 50,000 0 2,910 osh-native
ex.compute-fib 22 0 2 2.4 7.6 584,198 22,608 12 50,000 0 2,848 osh-native-souffle
ex.bashcomp-parse-help 180 0 3 10.3 8.8 995,279 12,911 21 50,000 0 3,898 osh-native
ex.bashcomp-parse-help 175 0 3 10.3 8.4 995,278 12,911 21 50,000 0 3,838 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,348 270 3 85,502 1 42,751 osh-native
ex.abuild-print-help 21 1 2 2.8 8.8 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
6 3 3 1.6 dash -
23 19 4 3.0 bash -
103 69 42 3.4 zsh -
16 8 8 28.5 bumpleak/osh mut
19 15 4 30.3 _bin/cxx-opt+bumproot/osh mut
22 22 0 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.2 osh-native mut+alloc
32 27 4 25.6 osh-native mut+alloc+free
35 26 9 18.0 osh-native mut+alloc+free+gc
36 36 0 18.2 osh-native mut+alloc+free+gc+exit
43 23 19 33.0 _bin/cxx-opt+nopool/osh mut+alloc
47 43 4 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 22 4 24.8 osh-native-souffle mut+alloc
29 16 12 25.3 osh-native-souffle mut+alloc+free
33 28 4 17.7 osh-native-souffle mut+alloc+free+gc
33 25 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 18 4 1.6 dash -
78 74 4 3.3 bash -
378 240 159 3.5 zsh -
48 44 4 84.1 bumpleak/osh mut
60 56 4 85.5 _bin/cxx-opt+bumproot/osh mut
70 58 12 86.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 73 24 73.6 osh-native mut+alloc
104 80 24 75.3 osh-native mut+alloc+free
166 149 16 45.8 osh-native mut+alloc+free+gc
173 149 24 46.0 osh-native mut+alloc+free+gc+exit
136 92 44 97.8 _bin/cxx-opt+nopool/osh mut+alloc
225 209 16 60.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 48 40 73.3 osh-native-souffle mut+alloc
95 59 36 75.0 osh-native-souffle mut+alloc+free
139 126 12 49.7 osh-native-souffle mut+alloc+free+gc
146 130 16 50.2 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 3 3 3.0 bash -
8 4 4 3.1 zsh -
6 6 0 12.0 bumpleak/osh mut
7 7 0 12.2 _bin/cxx-opt+bumproot/osh mut
8 8 0 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.2 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 4 4 8.5 osh-native mut+alloc+free+gc
9 6 3 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 8 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 0 8 9.8 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
8 4 4 8.3 osh-native-souffle mut+alloc+free+gc
8 6 3 8.1 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 29 0 3.0 bash -
24 23 0 3.3 zsh -
19 15 4 31.7 bumpleak/osh mut
26 23 4 32.4 _bin/cxx-opt+bumproot/osh mut
29 21 7 31.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.2 osh-native mut+alloc
38 29 8 26.7 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
54 39 15 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 19 11 25.7 osh-native-souffle mut+alloc
32 12 20 26.3 osh-native-souffle mut+alloc+free
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc
22 17 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
72 60 12 3.1 bash -
166 107 59 55.2 bumpleak/osh mut
180 123 56 56.3 _bin/cxx-opt+bumproot/osh mut
192 112 80 56.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
208 136 72 47.1 osh-native mut+alloc
217 153 64 48.9 osh-native mut+alloc+free
180 136 44 8.8 osh-native mut+alloc+free+gc
181 96 84 8.7 osh-native mut+alloc+free+gc+exit
233 128 104 62.6 _bin/cxx-opt+nopool/osh mut+alloc
213 173 40 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 140 64 46.7 osh-native-souffle mut+alloc
209 126 82 48.3 osh-native-souffle mut+alloc+free
175 107 67 8.4 osh-native-souffle mut+alloc+free+gc
174 130 43 8.5 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 4 6 3.5 dash -
20 15 5 4.3 bash -
18 6 12 3.4 zsh -
18 8 10 11.7 bumpleak/osh mut
20 6 14 12.8 _bin/cxx-opt+bumproot/osh mut
20 18 2 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 19 2 11.0 osh-native mut+alloc
22 21 2 11.1 osh-native mut+alloc+free
22 18 5 9.2 osh-native mut+alloc+free+gc
22 18 5 9.2 osh-native mut+alloc+free+gc+exit
25 7 18 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 24 2 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 15 5 10.6 osh-native-souffle mut+alloc
21 8 14 10.7 osh-native-souffle mut+alloc+free
21 13 9 8.8 osh-native-souffle mut+alloc+free+gc
21 22 0 8.7 osh-native-souffle mut+alloc+free+gc+exit