Skip to content

Commit e6b5ca8

Browse files
Merge pull request #377 from byroot/rails-8
Upgrade remaining benchmarks to Rails 8
2 parents 152318b + a2d1a16 commit e6b5ca8

File tree

12 files changed

+140
-131
lines changed

12 files changed

+140
-131
lines changed

benchmarks/activerecord/Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source "https://rubygems.org"
2-
gem "activerecord", "~> 7.2"
3-
gem "sqlite3", "~> 1.4", platform: :ruby
2+
gem "activerecord", "~> 8.0"
3+
gem "sqlite3", platform: :ruby
44
gem "activerecord-jdbcsqlite3-adapter", "~> 70", platform: :jruby
55
gem "mutex_m"
66
gem "bigdecimal"
Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activemodel (7.2.2.1)
5-
activesupport (= 7.2.2.1)
6-
activerecord (7.2.2.1)
7-
activemodel (= 7.2.2.1)
8-
activesupport (= 7.2.2.1)
4+
activemodel (8.0.2)
5+
activesupport (= 8.0.2)
6+
activerecord (8.0.2)
7+
activemodel (= 8.0.2)
8+
activesupport (= 8.0.2)
99
timeout (>= 0.4.0)
10-
activesupport (7.2.2.1)
10+
activesupport (8.0.2)
1111
base64
1212
benchmark (>= 0.3)
1313
bigdecimal
@@ -19,6 +19,7 @@ GEM
1919
minitest (>= 5.1)
2020
securerandom (>= 0.3)
2121
tzinfo (~> 2.0, >= 2.0.5)
22+
uri (>= 0.13.1)
2223
base64 (0.3.0)
2324
benchmark (0.4.1)
2425
bigdecimal (3.2.2)
@@ -32,23 +33,25 @@ GEM
3233
minitest (5.25.5)
3334
mutex_m (0.3.0)
3435
securerandom (0.4.1)
35-
sqlite3 (1.7.3)
36+
sqlite3 (2.7.3)
3637
mini_portile2 (~> 2.8.0)
38+
sqlite3 (2.7.3-x86_64-linux-gnu)
3739
timeout (0.4.3)
3840
tzinfo (2.0.6)
3941
concurrent-ruby (~> 1.0)
42+
uri (1.0.3)
4043

4144
PLATFORMS
4245
ruby
4346
x86_64-linux
4447

4548
DEPENDENCIES
46-
activerecord (~> 7.2)
49+
activerecord (~> 8.0)
4750
activerecord-jdbcsqlite3-adapter (~> 70)
4851
base64
4952
bigdecimal
5053
mutex_m
51-
sqlite3 (~> 1.4)
54+
sqlite3
5255

5356
BUNDLED WITH
54-
2.8.0.dev
57+
2.7.0

benchmarks/erubi-rails/Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ gem "cgi" # Workaround cgi extraction in Ruby 3.5.0-dev
1313
actiontext activejob activemodel activerecord
1414
activestorage activesupport railties
1515
].each do |rails_gem|
16-
gem rails_gem, '~> 7.2.1'
16+
gem rails_gem, '~> 8.0'
1717
end
1818

1919
gem 'sprockets-rails', '3.4.0'
2020

2121
# Use sqlite3 as the database for Active Record
22-
gem 'sqlite3', '~> 1.4', platform: :ruby
22+
gem 'sqlite3', platform: :ruby
2323
gem 'activerecord-jdbcsqlite3-adapter', '~> 70', platform: :jruby
2424
# Use Puma as the app server
2525
# gem 'puma', '~> 5.6'

benchmarks/erubi-rails/Gemfile.lock

Lines changed: 60 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,59 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actionmailbox (7.2.2.1)
5-
actionpack (= 7.2.2.1)
6-
activejob (= 7.2.2.1)
7-
activerecord (= 7.2.2.1)
8-
activestorage (= 7.2.2.1)
9-
activesupport (= 7.2.2.1)
4+
actionmailbox (8.0.2)
5+
actionpack (= 8.0.2)
6+
activejob (= 8.0.2)
7+
activerecord (= 8.0.2)
8+
activestorage (= 8.0.2)
9+
activesupport (= 8.0.2)
1010
mail (>= 2.8.0)
11-
actionmailer (7.2.2.1)
12-
actionpack (= 7.2.2.1)
13-
actionview (= 7.2.2.1)
14-
activejob (= 7.2.2.1)
15-
activesupport (= 7.2.2.1)
11+
actionmailer (8.0.2)
12+
actionpack (= 8.0.2)
13+
actionview (= 8.0.2)
14+
activejob (= 8.0.2)
15+
activesupport (= 8.0.2)
1616
mail (>= 2.8.0)
1717
rails-dom-testing (~> 2.2)
18-
actionpack (7.2.2.1)
19-
actionview (= 7.2.2.1)
20-
activesupport (= 7.2.2.1)
18+
actionpack (8.0.2)
19+
actionview (= 8.0.2)
20+
activesupport (= 8.0.2)
2121
nokogiri (>= 1.8.5)
22-
racc
23-
rack (>= 2.2.4, < 3.2)
22+
rack (>= 2.2.4)
2423
rack-session (>= 1.0.1)
2524
rack-test (>= 0.6.3)
2625
rails-dom-testing (~> 2.2)
2726
rails-html-sanitizer (~> 1.6)
2827
useragent (~> 0.16)
29-
actiontext (7.2.2.1)
30-
actionpack (= 7.2.2.1)
31-
activerecord (= 7.2.2.1)
32-
activestorage (= 7.2.2.1)
33-
activesupport (= 7.2.2.1)
28+
actiontext (8.0.2)
29+
actionpack (= 8.0.2)
30+
activerecord (= 8.0.2)
31+
activestorage (= 8.0.2)
32+
activesupport (= 8.0.2)
3433
globalid (>= 0.6.0)
3534
nokogiri (>= 1.8.5)
36-
actionview (7.2.2.1)
37-
activesupport (= 7.2.2.1)
35+
actionview (8.0.2)
36+
activesupport (= 8.0.2)
3837
builder (~> 3.1)
3938
erubi (~> 1.11)
4039
rails-dom-testing (~> 2.2)
4140
rails-html-sanitizer (~> 1.6)
42-
activejob (7.2.2.1)
43-
activesupport (= 7.2.2.1)
41+
activejob (8.0.2)
42+
activesupport (= 8.0.2)
4443
globalid (>= 0.3.6)
45-
activemodel (7.2.2.1)
46-
activesupport (= 7.2.2.1)
47-
activerecord (7.2.2.1)
48-
activemodel (= 7.2.2.1)
49-
activesupport (= 7.2.2.1)
44+
activemodel (8.0.2)
45+
activesupport (= 8.0.2)
46+
activerecord (8.0.2)
47+
activemodel (= 8.0.2)
48+
activesupport (= 8.0.2)
5049
timeout (>= 0.4.0)
51-
activestorage (7.2.2.1)
52-
actionpack (= 7.2.2.1)
53-
activejob (= 7.2.2.1)
54-
activerecord (= 7.2.2.1)
55-
activesupport (= 7.2.2.1)
50+
activestorage (8.0.2)
51+
actionpack (= 8.0.2)
52+
activejob (= 8.0.2)
53+
activerecord (= 8.0.2)
54+
activesupport (= 8.0.2)
5655
marcel (~> 1.0)
57-
activesupport (7.2.2.1)
56+
activesupport (8.0.2)
5857
base64
5958
benchmark (>= 0.3)
6059
bigdecimal
@@ -66,6 +65,7 @@ GEM
6665
minitest (>= 5.1)
6766
securerandom (>= 0.3)
6867
tzinfo (~> 2.0, >= 2.0.5)
68+
uri (>= 0.13.1)
6969
addressable (2.8.7)
7070
public_suffix (>= 2.0.2, < 7.0)
7171
base64 (0.3.0)
@@ -134,6 +134,8 @@ GEM
134134
nokogiri (1.18.9)
135135
mini_portile2 (~> 2.8.2)
136136
racc (~> 1.4)
137+
nokogiri (1.18.9-x86_64-linux-gnu)
138+
racc (~> 1.4)
137139
pp (0.6.2)
138140
prettyprint
139141
prettyprint (0.2.0)
@@ -142,7 +144,7 @@ GEM
142144
stringio
143145
public_suffix (6.0.2)
144146
racc (1.8.1)
145-
rack (3.1.16)
147+
rack (3.2.0)
146148
rack-mini-profiler (2.3.4)
147149
rack (>= 1.2.0)
148150
rack-proxy (0.7.7)
@@ -161,9 +163,9 @@ GEM
161163
rails-html-sanitizer (1.6.2)
162164
loofah (~> 2.21)
163165
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
164-
railties (7.2.2.1)
165-
actionpack (= 7.2.2.1)
166-
activesupport (= 7.2.2.1)
166+
railties (8.0.2)
167+
actionpack (= 8.0.2)
168+
activesupport (= 8.0.2)
167169
irb (~> 1.13)
168170
rackup (>= 1.0.0)
169171
rake (>= 12.2)
@@ -173,7 +175,7 @@ GEM
173175
rdoc (6.14.2)
174176
erb
175177
psych (>= 4.0.0)
176-
regexp_parser (2.10.0)
178+
regexp_parser (2.11.0)
177179
reline (0.6.2)
178180
io-console (~> 0.5)
179181
rexml (3.4.1)
@@ -184,7 +186,7 @@ GEM
184186
rexml (~> 3.2, >= 3.2.5)
185187
rubyzip (>= 1.2.2)
186188
semantic_range (3.1.0)
187-
spring (4.3.0)
189+
spring (4.4.0)
188190
sprockets (4.2.2)
189191
concurrent-ruby (~> 1.0)
190192
logger
@@ -193,8 +195,9 @@ GEM
193195
actionpack (>= 5.2)
194196
activesupport (>= 5.2)
195197
sprockets (>= 3.0.0)
196-
sqlite3 (1.7.3)
198+
sqlite3 (2.7.3)
197199
mini_portile2 (~> 2.8.0)
200+
sqlite3 (2.7.3-x86_64-linux-gnu)
198201
stringio (3.1.7)
199202
strscan (3.1.5)
200203
thor (1.4.0)
@@ -204,6 +207,7 @@ GEM
204207
turbolinks-source (5.2.0)
205208
tzinfo (2.0.6)
206209
concurrent-ruby (~> 1.0)
210+
uri (1.0.3)
207211
useragent (0.16.11)
208212
webdrivers (5.3.1)
209213
nokogiri (~> 1.6)
@@ -223,17 +227,17 @@ PLATFORMS
223227
x86_64-linux
224228

225229
DEPENDENCIES
226-
actionmailbox (~> 7.2.1)
227-
actionmailer (~> 7.2.1)
228-
actionpack (~> 7.2.1)
229-
actiontext (~> 7.2.1)
230-
actionview (~> 7.2.1)
231-
activejob (~> 7.2.1)
232-
activemodel (~> 7.2.1)
233-
activerecord (~> 7.2.1)
230+
actionmailbox (~> 8.0)
231+
actionmailer (~> 8.0)
232+
actionpack (~> 8.0)
233+
actiontext (~> 8.0)
234+
actionview (~> 8.0)
235+
activejob (~> 8.0)
236+
activemodel (~> 8.0)
237+
activerecord (~> 8.0)
234238
activerecord-jdbcsqlite3-adapter (~> 70)
235-
activestorage (~> 7.2.1)
236-
activesupport (~> 7.2.1)
239+
activestorage (~> 8.0)
240+
activesupport (~> 8.0)
237241
base64
238242
bigdecimal
239243
byebug
@@ -245,15 +249,15 @@ DEPENDENCIES
245249
net-pop (~> 0.1.1)
246250
net-smtp (~> 0.2.1)
247251
rack-mini-profiler (~> 2.0)
248-
railties (~> 7.2.1)
252+
railties (~> 8.0)
249253
selenium-webdriver
250254
spring
251255
sprockets-rails (= 3.4.0)
252-
sqlite3 (~> 1.4)
256+
sqlite3
253257
turbolinks (~> 5)
254258
tzinfo-data
255259
webdrivers
256260
webpacker (~> 5.0)
257261

258262
BUNDLED WITH
259-
2.8.0.dev
263+
2.7.0

benchmarks/erubi-rails/config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
module ErbTest
2222
class Application < Rails::Application
2323
# Initialize configuration defaults for originally generated Rails version.
24-
config.load_defaults 7.2
24+
config.load_defaults "#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}"
2525

2626
# Please, add to the `ignore` list any other `lib` subdirectories that do
2727
# not contain `.rb` files, or that should not be reloaded or eager loaded.

benchmarks/erubi-rails/config/environments/production.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@
9191
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
9292

9393
# yjit-bench configurations
94-
config.active_record.sqlite3_production_warning = false
9594
# If we want to benchmark with YJIT then it has already been enabled by command line arguments.
9695
# If we are benchmarking CRuby without YJIT don't enable it even if this build has it.
9796
config.yjit = false

benchmarks/lobsters/config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
module Lobsters
2222
class Application < Rails::Application
2323
# Initialize configuration defaults for originally generated Rails version.
24-
config.load_defaults 8.0
24+
config.load_defaults "#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}"
2525

2626
# Please, add to the `ignore` list any other `lib` subdirectories that do
2727
# not contain `.rb` files, or that should not be reloaded or eager loaded.

benchmarks/railsbench/Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ gem "cgi" # Workaround cgi extraction in Ruby 3.5.0-dev
1313
actiontext activejob activemodel activerecord
1414
activestorage activesupport railties
1515
].each do |rails_gem|
16-
gem rails_gem, '~> 7.2'
16+
gem rails_gem, '~> 8.0'
1717
end
1818

1919
gem 'sprockets-rails', '3.2.2'
2020

2121
gem 'stackprof', platforms: :mri
2222
# Use sqlite3 as the database for Active Record
23-
gem 'sqlite3', '~> 1.4', platform: :ruby
23+
gem 'sqlite3', platform: :ruby
2424
gem 'activerecord-jdbcsqlite3-adapter', '~> 70', platform: :jruby
2525
# Use webrick for the web server since it's easy to install.
2626
# The web server is not used during the benchmark.

0 commit comments

Comments
 (0)