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,708 1,282 6 409,064 5 204,532 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,708 1,282 6 408,722 5 204,361 osh-native-souffle
parse.configure-coreutils 149 23 61 44.7 49.9 1,653,296 4,764 12 1,030,978 6 769,626 osh-native
parse.configure-coreutils 146 26 68 46.1 51.2 1,653,295 4,764 12 1,069,088 6 798,625 osh-native-souffle
parse.abuild 9 1 1 2.6 8.4 101,899 180 2 75,194 1 37,597 osh-native
parse.abuild 8 1 1 2.6 8.3 101,899 180 2 75,064 1 37,532 osh-native-souffle
ex.compute-fib 30 0 1 2.4 7.9 584,164 22,608 12 50,000 0 2,875 osh-native
ex.compute-fib 22 0 1 2.4 7.3 584,164 22,608 12 50,000 0 2,813 osh-native-souffle
ex.bashcomp-parse-help 180 0 3 10.3 8.8 995,245 12,911 21 50,000 0 3,865 osh-native
ex.bashcomp-parse-help 176 0 3 10.3 8.3 995,244 12,911 21 50,000 0 3,795 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,314 270 3 85,430 1 42,715 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,314 270 3 85,306 1 42,653 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 6 0 1.6 dash -
23 23 0 3.0 bash -
105 52 58 3.4 zsh -
16 8 8 29.0 bumpleak/osh mut
19 15 4 30.1 _bin/cxx-opt+bumproot/osh mut
23 9 13 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 30 0 25.2 osh-native mut+alloc
32 16 16 25.6 osh-native mut+alloc+free
35 31 4 18.0 osh-native mut+alloc+free+gc
50 35 15 18.2 osh-native mut+alloc+free+gc+exit
44 36 8 31.9 _bin/cxx-opt+nopool/osh mut+alloc
48 40 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 11 24.8 osh-native-souffle mut+alloc
29 24 4 25.3 osh-native-souffle mut+alloc+free
32 32 0 17.4 osh-native-souffle mut+alloc+free+gc
33 21 13 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 14 7 1.6 dash -
78 74 4 3.1 bash -
383 220 182 3.5 zsh -
48 32 16 85.2 bumpleak/osh mut
60 52 8 86.4 _bin/cxx-opt+bumproot/osh mut
71 66 4 86.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
100 79 21 73.6 osh-native mut+alloc
105 73 32 75.4 osh-native mut+alloc+free
149 132 16 49.9 osh-native mut+alloc+free+gc
153 134 20 50.7 osh-native mut+alloc+free+gc+exit
141 93 48 97.7 _bin/cxx-opt+nopool/osh mut+alloc
211 183 28 67.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 57 32 73.0 osh-native-souffle mut+alloc
96 44 52 74.9 osh-native-souffle mut+alloc+free
146 129 16 51.2 osh-native-souffle mut+alloc+free+gc
152 128 24 52.0 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.1 zsh -
6 6 0 10.9 bumpleak/osh mut
6 6 0 12.7 _bin/cxx-opt+bumproot/osh mut
7 7 0 10.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 4 4 8.4 osh-native mut+alloc+free+gc
10 7 3 8.5 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.7 osh-native-souffle mut+alloc
8 0 8 9.6 osh-native-souffle mut+alloc+free
8 0 8 8.3 osh-native-souffle mut+alloc+free+gc
8 4 4 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 -
28 28 0 2.9 bash -
24 12 12 3.1 zsh -
19 15 4 32.6 bumpleak/osh mut
26 21 4 33.1 _bin/cxx-opt+bumproot/osh mut
28 23 4 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 20 16 26.2 osh-native mut+alloc
38 29 8 26.6 osh-native mut+alloc+free
30 29 0 7.9 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
55 47 8 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 15 15 26.0 osh-native-souffle mut+alloc
32 8 24 26.2 osh-native-souffle mut+alloc+free
22 22 0 7.3 osh-native-souffle mut+alloc+free+gc
22 22 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
74 70 4 3.1 bash -
182 129 52 55.1 bumpleak/osh mut
182 138 43 55.1 _bin/cxx-opt+bumproot/osh mut
193 124 68 56.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 117 97 46.9 osh-native mut+alloc
218 137 81 48.9 osh-native mut+alloc+free
180 132 48 8.8 osh-native mut+alloc+free+gc
182 127 55 8.8 osh-native mut+alloc+free+gc+exit
234 155 79 63.5 _bin/cxx-opt+nopool/osh mut+alloc
207 143 64 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 124 80 46.6 osh-native-souffle mut+alloc
210 145 65 48.3 osh-native-souffle mut+alloc+free
176 116 60 8.3 osh-native-souffle mut+alloc+free+gc
176 104 72 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 5 6 3.5 dash -
20 15 5 4.5 bash -
18 9 9 3.5 zsh -
20 8 13 12.1 bumpleak/osh mut
19 18 2 11.9 _bin/cxx-opt+bumproot/osh mut
21 20 1 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 14 8 11.0 osh-native mut+alloc
23 13 10 11.1 osh-native mut+alloc+free
22 17 5 9.0 osh-native mut+alloc+free+gc
24 14 10 9.0 osh-native mut+alloc+free+gc+exit
25 21 5 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 15 10 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 10 11 10.6 osh-native-souffle mut+alloc
21 15 6 10.6 osh-native-souffle mut+alloc+free
21 14 8 8.7 osh-native-souffle mut+alloc+free+gc
22 11 11 8.5 osh-native-souffle mut+alloc+free+gc+exit