Commit 2e65fd1
committed
Step 2: Stop benchmarks crashing on Rubies that lack a feature
Crashes seen in CI, now fixed:
- dig-vs-[]-vs-fetch.rb on 2.1 and 2.2: skip only the Hash#dig report
(Ruby 2.3+), the other five still run.
- slice-native-vs-before-native.rb on 2.1 to 2.4 and JRuby 9.1: skip only
the native Hash#slice report (Ruby 2.5+), so the pre-native versions the
file is about still run there.
- remove-extra-spaces-or-other-chars.rb on 2.1 and 2.2: <<~ (Ruby 2.3+)
made the file fail to parse. A plain heredoc builds the same string
(checked byte for byte).
- bsearch-vs-find.rb on JRuby: the default Java heap cap (1/4 of memory)
is too small for its 100M element array. It failed on JRuby 9.1 in CI
(3554MB cap) and on JRuby 10 locally (2232MB). Both now get -J-Xmx6g.
- On main (SHARE=1), JRuby 9.1 crashed every benchmark when sharing:
its bundled jruby-openssl fails the TLS handshake with ips.fastruby.io
("Received fatal alert: handshake_failure"). The Gemfile gives JRuby
before 9.2 a newer jruby-openssl (0.14.6 resolves). JRuby 10 already
connects, so it keeps its own.1 parent 21a33f3 commit 2e65fd1
5 files changed
Lines changed: 19 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
0 commit comments