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 38 6 12 12.0 17.8 476,761 1,282 6 406,608 5 203,304 osh-native
parse.configure-cpython 33 4 10 12.0 17.4 476,761 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 165 26 76 44.5 49.7 1,653,349 4,764 12 1,025,530 6 764,308 osh-native
parse.configure-coreutils 136 25 61 44.5 49.5 1,653,348 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,952 180 2 75,034 1 37,517 osh-native
parse.abuild 9 1 2 2.4 8.0 101,952 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.1 579,616 22,608 12 50,000 0 2,921 osh-native
ex.compute-fib 22 0 1 2.2 7.6 579,616 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 181 0 3 10.9 8.9 1,017,214 15,258 21 50,000 0 3,902 osh-native
ex.bashcomp-parse-help 175 0 3 10.9 8.3 1,017,213 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.9 116,328 277 3 85,252 1 42,626 osh-native
ex.abuild-print-help 21 1 2 2.8 8.5 116,328 277 3 85,124 1 42,562 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 21 2 3.1 bash -
101 53 54 3.3 zsh -
16 12 4 29.1 bumpleak/osh mut
20 18 2 29.6 _bin/cxx-opt+bumproot/osh mut
22 17 5 29.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 18 12 25.0 osh-native mut+alloc
32 20 12 25.6 osh-native mut+alloc+free
38 29 9 17.8 osh-native mut+alloc+free+gc
37 30 7 18.0 osh-native mut+alloc+free+gc+exit
42 31 10 32.4 _bin/cxx-opt+nopool/osh mut+alloc
52 37 15 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 16 10 24.8 osh-native-souffle mut+alloc
29 18 10 25.4 osh-native-souffle mut+alloc+free
33 24 9 17.4 osh-native-souffle mut+alloc+free+gc
33 27 6 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 21 0 1.4 dash -
78 77 1 3.3 bash -
363 191 194 3.5 zsh -
50 41 9 84.4 bumpleak/osh mut
60 52 8 84.9 _bin/cxx-opt+bumproot/osh mut
70 62 8 85.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 68 32 73.4 osh-native mut+alloc
108 81 27 75.2 osh-native mut+alloc+free
165 143 22 49.7 osh-native mut+alloc+free+gc
156 137 19 50.2 osh-native mut+alloc+free+gc+exit
137 89 48 99.0 _bin/cxx-opt+nopool/osh mut+alloc
221 194 26 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 59 28 73.1 osh-native-souffle mut+alloc
96 67 29 75.0 osh-native-souffle mut+alloc+free
136 115 21 49.5 osh-native-souffle mut+alloc+free+gc
153 126 27 50.1 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 -
5 4 1 2.9 bash -
7 4 3 3.3 zsh -
6 5 1 12.2 bumpleak/osh mut
7 4 2 11.2 _bin/cxx-opt+bumproot/osh mut
8 6 2 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 7 1 10.0 osh-native mut+alloc
9 5 4 10.2 osh-native mut+alloc+free
9 7 2 8.7 osh-native mut+alloc+free+gc
9 5 4 8.7 osh-native mut+alloc+free+gc+exit
12 9 2 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 8 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 3 9.6 osh-native-souffle mut+alloc
8 7 1 9.8 osh-native-souffle mut+alloc+free
9 7 2 8.0 osh-native-souffle mut+alloc+free+gc
9 5 4 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
10 9 1 1.4 dash -
29 27 2 2.9 bash -
23 19 4 3.3 zsh -
19 15 4 32.4 bumpleak/osh mut
26 23 3 32.5 _bin/cxx-opt+bumproot/osh mut
28 23 4 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 30 7 26.3 osh-native mut+alloc
37 23 14 26.5 osh-native mut+alloc+free
28 26 2 8.1 osh-native mut+alloc+free+gc
29 27 2 8.0 osh-native mut+alloc+free+gc+exit
52 37 16 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 34 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 9 26.0 osh-native-souffle mut+alloc
31 20 11 26.2 osh-native-souffle mut+alloc+free
22 20 2 7.6 osh-native-souffle mut+alloc+free+gc
22 19 3 7.7 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
73 71 2 3.1 bash -
167 119 48 57.3 bumpleak/osh mut
181 124 57 57.2 _bin/cxx-opt+bumproot/osh mut
195 126 69 58.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 148 65 48.7 osh-native mut+alloc
218 136 82 50.4 osh-native mut+alloc+free
181 120 61 8.9 osh-native mut+alloc+free+gc
182 135 47 8.8 osh-native mut+alloc+free+gc+exit
233 144 89 64.6 _bin/cxx-opt+nopool/osh mut+alloc
214 160 54 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 136 69 48.2 osh-native-souffle mut+alloc
213 125 88 50.2 osh-native-souffle mut+alloc+free
175 125 50 8.3 osh-native-souffle mut+alloc+free+gc
173 120 53 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
9 3 6 3.4 dash -
19 11 9 4.3 bash -
17 6 12 3.5 zsh -
18 8 10 11.4 bumpleak/osh mut
19 7 12 11.9 _bin/cxx-opt+bumproot/osh mut
19 12 8 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 12 10 11.0 osh-native mut+alloc
22 10 13 11.4 osh-native mut+alloc+free
22 9 13 8.9 osh-native mut+alloc+free+gc
22 12 11 9.2 osh-native mut+alloc+free+gc+exit
24 11 14 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 14 11 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 10 11 10.6 osh-native-souffle mut+alloc
21 10 11 10.7 osh-native-souffle mut+alloc+free
21 14 8 8.5 osh-native-souffle mut+alloc+free+gc
21 11 11 8.4 osh-native-souffle mut+alloc+free+gc+exit