Source code: oil/benchmarks/gc.sh
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 | 37 | 4 | 10 | 12.1 | 17.7 | 476,708 | 1,282 | 6 | 409,064 | 5 | 204,532 | osh-native |
parse.configure-cpython | 34 | 3 | 10 | 12.0 | 17.4 | 476,708 | 1,282 | 6 | 408,722 | 5 | 204,361 | osh-native-souffle |
parse.configure-coreutils | 146 | 22 | 60 | 44.7 | 49.9 | 1,653,296 | 4,764 | 12 | 1,030,978 | 6 | 769,626 | osh-native |
parse.configure-coreutils | 145 | 27 | 67 | 46.1 | 51.1 | 1,653,295 | 4,764 | 12 | 1,069,088 | 6 | 798,625 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 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 | 28 | 0 | 1 | 2.4 | 8.0 | 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 | 184 | 0 | 4 | 10.3 | 8.8 | 995,245 | 12,911 | 21 | 50,000 | 0 | 3,865 | osh-native |
ex.bashcomp-parse-help | 175 | 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 | 8.9 | 116,314 | 270 | 3 | 85,430 | 1 | 42,715 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 116,314 | 270 | 3 | 85,306 | 1 | 42,653 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 6 | 0 | 1.6 | dash | - |
23 | 19 | 4 | 3.1 | bash | - |
104 | 56 | 54 | 3.4 | zsh | - |
17 | 7 | 10 | 29.4 | bumpleak/osh | mut |
19 | 15 | 4 | 29.1 | _bin/cxx-opt+bumproot/osh | mut |
23 | 15 | 8 | 28.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 22 | 7 | 25.0 | osh-native | mut+alloc |
32 | 16 | 16 | 25.7 | osh-native | mut+alloc+free |
37 | 33 | 4 | 17.7 | osh-native | mut+alloc+free+gc |
37 | 28 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 32 | 12 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
52 | 36 | 16 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 12 | 24.8 | osh-native-souffle | mut+alloc |
30 | 21 | 8 | 25.2 | osh-native-souffle | mut+alloc+free |
34 | 34 | 0 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
33 | 33 | 0 | 17.8 | osh-native-souffle | mut+alloc+free+gc+exit |
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 | - |
79 | 79 | 0 | 3.3 | bash | - |
378 | 201 | 198 | 3.7 | zsh | - |
49 | 30 | 19 | 84.3 | bumpleak/osh | mut |
59 | 51 | 8 | 84.7 | _bin/cxx-opt+bumproot/osh | mut |
73 | 48 | 24 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 73 | 24 | 73.4 | osh-native | mut+alloc |
107 | 51 | 55 | 75.1 | osh-native | mut+alloc+free |
146 | 134 | 12 | 49.9 | osh-native | mut+alloc+free+gc |
151 | 130 | 20 | 50.7 | osh-native | mut+alloc+free+gc+exit |
140 | 102 | 37 | 97.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
226 | 198 | 28 | 67.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 64 | 24 | 73.2 | osh-native-souffle | mut+alloc |
96 | 64 | 32 | 75.0 | osh-native-souffle | mut+alloc+free |
145 | 128 | 16 | 51.1 | osh-native-souffle | mut+alloc+free+gc |
148 | 136 | 12 | 51.8 | osh-native-souffle | mut+alloc+free+gc+exit |
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 | 6 | 0 | 3.0 | bash | - |
8 | 4 | 4 | 3.4 | zsh | - |
5 | 5 | 0 | 11.8 | bumpleak/osh | mut |
7 | 7 | 0 | 11.0 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.4 | _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 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.8 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 4 | 8 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 0 | 8 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
9 | 0 | 9 | 8.4 | osh-native-souffle | mut+alloc+free+gc+exit |
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 | 25 | 4 | 3.0 | bash | - |
24 | 16 | 8 | 3.4 | zsh | - |
20 | 16 | 4 | 32.7 | bumpleak/osh | mut |
25 | 18 | 7 | 33.4 | _bin/cxx-opt+bumproot/osh | mut |
28 | 25 | 4 | 32.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 32 | 4 | 26.3 | osh-native | mut+alloc |
39 | 27 | 12 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 39 | 15 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 15 | 15 | 25.8 | osh-native-souffle | mut+alloc |
33 | 24 | 8 | 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 |
A realistic bash-completion
workload.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
73 | 73 | 0 | 3.0 | bash | - |
168 | 116 | 52 | 53.9 | bumpleak/osh | mut |
182 | 101 | 81 | 56.6 | _bin/cxx-opt+bumproot/osh | mut |
194 | 150 | 44 | 56.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 131 | 80 | 47.0 | osh-native | mut+alloc |
221 | 156 | 64 | 48.7 | osh-native | mut+alloc+free |
184 | 131 | 52 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 129 | 52 | 8.8 | osh-native | mut+alloc+free+gc+exit |
232 | 128 | 104 | 63.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 167 | 44 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
212 | 152 | 60 | 46.6 | osh-native-souffle | mut+alloc |
212 | 100 | 112 | 48.5 | osh-native-souffle | mut+alloc+free |
175 | 119 | 55 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
175 | 127 | 48 | 8.4 | osh-native-souffle | mut+alloc+free+gc+exit |
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 | 14 | 7 | 4.5 | bash | - |
18 | 5 | 14 | 3.4 | zsh | - |
18 | 12 | 7 | 11.2 | bumpleak/osh | mut |
20 | 12 | 8 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
20 | 12 | 9 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 15 | 7 | 11.0 | osh-native | mut+alloc |
22 | 14 | 9 | 11.1 | osh-native | mut+alloc+free |
22 | 16 | 7 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 16 | 8 | 9.3 | osh-native | mut+alloc+free+gc+exit |
25 | 17 | 8 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 16 | 9 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 19 | 2 | 10.5 | osh-native-souffle | mut+alloc |
22 | 11 | 11 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 13 | 9 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 13 | 10 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |