Skip to content

Commit 6ee8907

Browse files
byrootetiennebarrie
authored andcommitted
railsbench: upgrade to Rails 8
1 parent 574315a commit 6ee8907

File tree

4 files changed

+60
-57
lines changed

4 files changed

+60
-57
lines changed

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.

benchmarks/railsbench/Gemfile.lock

Lines changed: 57 additions & 53 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
base64 (0.3.0)
7070
benchmark (0.4.1)
7171
bigdecimal (3.2.2)
@@ -118,6 +118,8 @@ GEM
118118
nokogiri (1.18.9)
119119
mini_portile2 (~> 2.8.2)
120120
racc (~> 1.4)
121+
nokogiri (1.18.9-x86_64-linux-gnu)
122+
racc (~> 1.4)
121123
pp (0.6.2)
122124
prettyprint
123125
prettyprint (0.2.0)
@@ -138,9 +140,9 @@ GEM
138140
rails-html-sanitizer (1.6.2)
139141
loofah (~> 2.21)
140142
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)
141-
railties (7.2.2.1)
142-
actionpack (= 7.2.2.1)
143-
activesupport (= 7.2.2.1)
143+
railties (8.0.2)
144+
actionpack (= 8.0.2)
145+
activesupport (= 8.0.2)
144146
irb (~> 1.13)
145147
rackup (>= 1.0.0)
146148
rake (>= 12.2)
@@ -159,14 +161,16 @@ GEM
159161
actionpack (>= 4.0)
160162
activesupport (>= 4.0)
161163
sprockets (>= 3.0.0)
162-
sqlite3 (1.7.3)
164+
sqlite3 (2.7.3)
163165
mini_portile2 (~> 2.8.0)
166+
sqlite3 (2.7.3-x86_64-linux-gnu)
164167
stackprof (0.2.27)
165168
strscan (3.1.5)
166169
thor (1.4.0)
167170
timeout (0.4.3)
168171
tzinfo (2.0.6)
169172
concurrent-ruby (~> 1.0)
173+
uri (1.0.3)
170174
useragent (0.16.11)
171175
webrick (1.7.0)
172176
zeitwerk (2.7.3)
@@ -176,17 +180,17 @@ PLATFORMS
176180
x86_64-linux
177181

178182
DEPENDENCIES
179-
actionmailbox (~> 7.2)
180-
actionmailer (~> 7.2)
181-
actionpack (~> 7.2)
182-
actiontext (~> 7.2)
183-
actionview (~> 7.2)
184-
activejob (~> 7.2)
185-
activemodel (~> 7.2)
186-
activerecord (~> 7.2)
183+
actionmailbox (~> 8.0)
184+
actionmailer (~> 8.0)
185+
actionpack (~> 8.0)
186+
actiontext (~> 8.0)
187+
actionview (~> 8.0)
188+
activejob (~> 8.0)
189+
activemodel (~> 8.0)
190+
activerecord (~> 8.0)
187191
activerecord-jdbcsqlite3-adapter (~> 70)
188-
activestorage (~> 7.2)
189-
activesupport (~> 7.2)
192+
activestorage (~> 8.0)
193+
activesupport (~> 8.0)
190194
base64
191195
bigdecimal
192196
cgi
@@ -196,12 +200,12 @@ DEPENDENCIES
196200
net-pop (~> 0.1.1)
197201
net-smtp (~> 0.2.1)
198202
psych (~> 3.3.2)
199-
railties (~> 7.2)
203+
railties (~> 8.0)
200204
sprockets-rails (= 3.2.2)
201-
sqlite3 (~> 1.4)
205+
sqlite3
202206
stackprof
203207
tzinfo-data
204208
webrick (~> 1.7.0)
205209

206210
BUNDLED WITH
207-
2.8.0.dev
211+
2.7.0

benchmarks/railsbench/config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
module Railsbench
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/railsbench/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
config.logger = nil
9695
config.secret_key_base = 'in general secret should not be in the git repo but this is a benchmark'
9796
# If we want to benchmark with YJIT then it has already been enabled by command line arguments.

0 commit comments

Comments
 (0)