Skip to content

Commit 055f158

Browse files
committed
Upgrade benchmarks to Rails 7.2
It was released a few weeks ago we should bench against it now as that's closer to what we can improve.
1 parent b397cb3 commit 055f158

File tree

11 files changed

+271
-277
lines changed

11 files changed

+271
-277
lines changed

benchmarks/activerecord/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
source "https://rubygems.org"
2-
gem "activerecord", "~> 7.1"
2+
gem "activerecord", "~> 7.2"
33
gem "sqlite3", "~> 1.4", platform: :ruby
44
gem "activerecord-jdbcsqlite3-adapter", "~> 70", platform: :jruby
55
gem "mutex_m"

benchmarks/activerecord/Gemfile.lock

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,38 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activemodel (7.1.3)
5-
activesupport (= 7.1.3)
6-
activerecord (7.1.3)
7-
activemodel (= 7.1.3)
8-
activesupport (= 7.1.3)
4+
activemodel (7.2.1)
5+
activesupport (= 7.2.1)
6+
activerecord (7.2.1)
7+
activemodel (= 7.2.1)
8+
activesupport (= 7.2.1)
99
timeout (>= 0.4.0)
10-
activesupport (7.1.3)
10+
activesupport (7.2.1)
1111
base64
1212
bigdecimal
13-
concurrent-ruby (~> 1.0, >= 1.0.2)
13+
concurrent-ruby (~> 1.0, >= 1.3.1)
1414
connection_pool (>= 2.2.5)
1515
drb
1616
i18n (>= 1.6, < 2)
17+
logger (>= 1.4.2)
1718
minitest (>= 5.1)
18-
mutex_m
19-
tzinfo (~> 2.0)
19+
securerandom (>= 0.3)
20+
tzinfo (~> 2.0, >= 2.0.5)
2021
base64 (0.2.0)
2122
bigdecimal (3.1.6)
22-
concurrent-ruby (1.2.3)
23+
concurrent-ruby (1.3.4)
2324
connection_pool (2.4.1)
24-
drb (2.2.0)
25-
ruby2_keywords
26-
i18n (1.14.1)
25+
drb (2.2.1)
26+
i18n (1.14.5)
2727
concurrent-ruby (~> 1.0)
28+
logger (1.6.1)
2829
mini_portile2 (2.8.5)
29-
minitest (5.21.2)
30+
minitest (5.25.1)
3031
mutex_m (0.2.0)
31-
ruby2_keywords (0.0.5)
32+
securerandom (0.3.1)
3233
sqlite3 (1.7.1)
3334
mini_portile2 (~> 2.8.0)
35+
sqlite3 (1.7.1-arm64-darwin)
3436
timeout (0.4.1)
3537
tzinfo (2.0.6)
3638
concurrent-ruby (~> 1.0)
@@ -43,7 +45,7 @@ PLATFORMS
4345
x86_64-linux
4446

4547
DEPENDENCIES
46-
activerecord (~> 7.1)
48+
activerecord (~> 7.2)
4749
activerecord-jdbcsqlite3-adapter (~> 70)
4850
base64
4951
bigdecimal

benchmarks/erubi-rails/Gemfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
1111
actiontext activejob activemodel activerecord
1212
activestorage activesupport railties
1313
].each do |rails_gem|
14-
gem rails_gem, '~> 7.1'
14+
gem rails_gem, '~> 7.2.1'
1515
end
1616

1717
gem 'sprockets-rails', '3.4.0'
@@ -72,8 +72,6 @@ if RUBY_VERSION >= "3.1"
7272
# matrix was removed from default gems in Ruby 3.1, but is used by the `capybara` gem.
7373
# So we need to add it as a dependency until `capybara` is fixed: https://github.com/teamcapybara/capybara/pull/2468
7474
#gem "matrix", require: false
75-
76-
gem "securerandom", "0.1.1"
7775
end
7876

7977
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem

benchmarks/erubi-rails/Gemfile.lock

Lines changed: 87 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,75 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actionmailbox (7.1.3)
5-
actionpack (= 7.1.3)
6-
activejob (= 7.1.3)
7-
activerecord (= 7.1.3)
8-
activestorage (= 7.1.3)
9-
activesupport (= 7.1.3)
10-
mail (>= 2.7.1)
11-
net-imap
12-
net-pop
13-
net-smtp
14-
actionmailer (7.1.3)
15-
actionpack (= 7.1.3)
16-
actionview (= 7.1.3)
17-
activejob (= 7.1.3)
18-
activesupport (= 7.1.3)
19-
mail (~> 2.5, >= 2.5.4)
20-
net-imap
21-
net-pop
22-
net-smtp
4+
actionmailbox (7.2.1)
5+
actionpack (= 7.2.1)
6+
activejob (= 7.2.1)
7+
activerecord (= 7.2.1)
8+
activestorage (= 7.2.1)
9+
activesupport (= 7.2.1)
10+
mail (>= 2.8.0)
11+
actionmailer (7.2.1)
12+
actionpack (= 7.2.1)
13+
actionview (= 7.2.1)
14+
activejob (= 7.2.1)
15+
activesupport (= 7.2.1)
16+
mail (>= 2.8.0)
2317
rails-dom-testing (~> 2.2)
24-
actionpack (7.1.3)
25-
actionview (= 7.1.3)
26-
activesupport (= 7.1.3)
18+
actionpack (7.2.1)
19+
actionview (= 7.2.1)
20+
activesupport (= 7.2.1)
2721
nokogiri (>= 1.8.5)
2822
racc
29-
rack (>= 2.2.4)
23+
rack (>= 2.2.4, < 3.2)
3024
rack-session (>= 1.0.1)
3125
rack-test (>= 0.6.3)
3226
rails-dom-testing (~> 2.2)
3327
rails-html-sanitizer (~> 1.6)
34-
actiontext (7.1.3)
35-
actionpack (= 7.1.3)
36-
activerecord (= 7.1.3)
37-
activestorage (= 7.1.3)
38-
activesupport (= 7.1.3)
28+
useragent (~> 0.16)
29+
actiontext (7.2.1)
30+
actionpack (= 7.2.1)
31+
activerecord (= 7.2.1)
32+
activestorage (= 7.2.1)
33+
activesupport (= 7.2.1)
3934
globalid (>= 0.6.0)
4035
nokogiri (>= 1.8.5)
41-
actionview (7.1.3)
42-
activesupport (= 7.1.3)
36+
actionview (7.2.1)
37+
activesupport (= 7.2.1)
4338
builder (~> 3.1)
4439
erubi (~> 1.11)
4540
rails-dom-testing (~> 2.2)
4641
rails-html-sanitizer (~> 1.6)
47-
activejob (7.1.3)
48-
activesupport (= 7.1.3)
42+
activejob (7.2.1)
43+
activesupport (= 7.2.1)
4944
globalid (>= 0.3.6)
50-
activemodel (7.1.3)
51-
activesupport (= 7.1.3)
52-
activerecord (7.1.3)
53-
activemodel (= 7.1.3)
54-
activesupport (= 7.1.3)
45+
activemodel (7.2.1)
46+
activesupport (= 7.2.1)
47+
activerecord (7.2.1)
48+
activemodel (= 7.2.1)
49+
activesupport (= 7.2.1)
5550
timeout (>= 0.4.0)
56-
activestorage (7.1.3)
57-
actionpack (= 7.1.3)
58-
activejob (= 7.1.3)
59-
activerecord (= 7.1.3)
60-
activesupport (= 7.1.3)
51+
activestorage (7.2.1)
52+
actionpack (= 7.2.1)
53+
activejob (= 7.2.1)
54+
activerecord (= 7.2.1)
55+
activesupport (= 7.2.1)
6156
marcel (~> 1.0)
62-
activesupport (7.1.3)
57+
activesupport (7.2.1)
6358
base64
6459
bigdecimal
65-
concurrent-ruby (~> 1.0, >= 1.0.2)
60+
concurrent-ruby (~> 1.0, >= 1.3.1)
6661
connection_pool (>= 2.2.5)
6762
drb
6863
i18n (>= 1.6, < 2)
64+
logger (>= 1.4.2)
6965
minitest (>= 5.1)
70-
mutex_m
71-
tzinfo (~> 2.0)
66+
securerandom (>= 0.3)
67+
tzinfo (~> 2.0, >= 2.0.5)
7268
addressable (2.8.6)
7369
public_suffix (>= 2.0.2, < 6.0)
7470
base64 (0.2.0)
75-
bigdecimal (3.1.6)
76-
builder (3.2.4)
71+
bigdecimal (3.1.8)
72+
builder (3.3.0)
7773
byebug (11.1.3)
7874
capybara (3.39.2)
7975
addressable
@@ -84,24 +80,24 @@ GEM
8480
rack-test (>= 0.6.3)
8581
regexp_parser (>= 1.5, < 3.0)
8682
xpath (~> 3.2)
87-
concurrent-ruby (1.2.3)
83+
concurrent-ruby (1.3.4)
8884
connection_pool (2.4.1)
8985
crass (1.0.6)
9086
digest (3.1.1)
91-
drb (2.2.0)
92-
ruby2_keywords
93-
erubi (1.12.0)
87+
drb (2.2.1)
88+
erubi (1.13.0)
9489
globalid (1.2.1)
9590
activesupport (>= 6.1)
96-
i18n (1.14.1)
91+
i18n (1.14.5)
9792
concurrent-ruby (~> 1.0)
9893
io-console (0.7.2)
99-
irb (1.11.1)
100-
rdoc
94+
irb (1.14.0)
95+
rdoc (>= 4.0.0)
10196
reline (>= 0.4.2)
10297
jbuilder (2.11.5)
10398
actionview (>= 5.0.0)
10499
activesupport (>= 5.0.0)
100+
logger (1.6.1)
105101
loofah (2.22.0)
106102
crass (~> 1.0.2)
107103
nokogiri (>= 1.12.0)
@@ -110,11 +106,10 @@ GEM
110106
net-imap
111107
net-pop
112108
net-smtp
113-
marcel (1.0.2)
109+
marcel (1.0.4)
114110
matrix (0.4.2)
115111
mini_mime (1.1.5)
116-
mini_portile2 (2.8.5)
117-
minitest (5.21.2)
112+
minitest (5.25.1)
118113
mutex_m (0.2.0)
119114
net-imap (0.2.4)
120115
digest
@@ -128,14 +123,17 @@ GEM
128123
digest
129124
net-protocol
130125
timeout
131-
nokogiri (1.16.0)
132-
mini_portile2 (~> 2.8.2)
126+
nokogiri (1.16.7-arm64-darwin)
127+
racc (~> 1.4)
128+
nokogiri (1.16.7-x86_64-darwin)
129+
racc (~> 1.4)
130+
nokogiri (1.16.7-x86_64-linux)
133131
racc (~> 1.4)
134132
psych (5.1.2)
135133
stringio
136134
public_suffix (5.0.4)
137-
racc (1.7.3)
138-
rack (3.0.8)
135+
racc (1.8.1)
136+
rack (3.1.7)
139137
rack-mini-profiler (2.3.4)
140138
rack (>= 1.2.0)
141139
rack-proxy (0.7.7)
@@ -154,24 +152,23 @@ GEM
154152
rails-html-sanitizer (1.6.0)
155153
loofah (~> 2.21)
156154
nokogiri (~> 1.14)
157-
railties (7.1.3)
158-
actionpack (= 7.1.3)
159-
activesupport (= 7.1.3)
160-
irb
155+
railties (7.2.1)
156+
actionpack (= 7.2.1)
157+
activesupport (= 7.2.1)
158+
irb (~> 1.13)
161159
rackup (>= 1.0.0)
162160
rake (>= 12.2)
163161
thor (~> 1.0, >= 1.2.2)
164162
zeitwerk (~> 2.6)
165-
rake (13.1.0)
166-
rdoc (6.6.2)
163+
rake (13.2.1)
164+
rdoc (6.7.0)
167165
psych (>= 4.0.0)
168166
regexp_parser (2.9.0)
169-
reline (0.4.2)
167+
reline (0.5.10)
170168
io-console (~> 0.5)
171169
rexml (3.2.6)
172-
ruby2_keywords (0.0.5)
173170
rubyzip (2.3.2)
174-
securerandom (0.1.1)
171+
securerandom (0.3.1)
175172
selenium-webdriver (4.10.0)
176173
rexml (~> 3.2, >= 3.2.5)
177174
rubyzip (>= 1.2.2, < 3.0)
@@ -185,17 +182,19 @@ GEM
185182
actionpack (>= 5.2)
186183
activesupport (>= 5.2)
187184
sprockets (>= 3.0.0)
188-
sqlite3 (1.7.1)
189-
mini_portile2 (~> 2.8.0)
190-
stringio (3.1.0)
191-
strscan (3.0.9)
192-
thor (1.3.0)
185+
sqlite3 (1.7.1-arm64-darwin)
186+
sqlite3 (1.7.1-x86_64-darwin)
187+
sqlite3 (1.7.1-x86_64-linux)
188+
stringio (3.1.1)
189+
strscan (3.1.0)
190+
thor (1.3.2)
193191
timeout (0.4.1)
194192
turbolinks (5.2.1)
195193
turbolinks-source (~> 5.2)
196194
turbolinks-source (5.2.0)
197195
tzinfo (2.0.6)
198196
concurrent-ruby (~> 1.0)
197+
useragent (0.16.10)
199198
webdrivers (5.3.1)
200199
nokogiri (~> 1.6)
201200
rubyzip (>= 1.3.0)
@@ -209,7 +208,7 @@ GEM
209208
websocket (1.2.10)
210209
xpath (3.2.0)
211210
nokogiri (~> 1.8)
212-
zeitwerk (2.6.12)
211+
zeitwerk (2.6.18)
213212

214213
PLATFORMS
215214
arm64-darwin-21
@@ -220,17 +219,17 @@ PLATFORMS
220219
x86_64-linux
221220

222221
DEPENDENCIES
223-
actionmailbox (~> 7.1)
224-
actionmailer (~> 7.1)
225-
actionpack (~> 7.1)
226-
actiontext (~> 7.1)
227-
actionview (~> 7.1)
228-
activejob (~> 7.1)
229-
activemodel (~> 7.1)
230-
activerecord (~> 7.1)
222+
actionmailbox (~> 7.2.1)
223+
actionmailer (~> 7.2.1)
224+
actionpack (~> 7.2.1)
225+
actiontext (~> 7.2.1)
226+
actionview (~> 7.2.1)
227+
activejob (~> 7.2.1)
228+
activemodel (~> 7.2.1)
229+
activerecord (~> 7.2.1)
231230
activerecord-jdbcsqlite3-adapter (~> 70)
232-
activestorage (~> 7.1)
233-
activesupport (~> 7.1)
231+
activestorage (~> 7.2.1)
232+
activesupport (~> 7.2.1)
234233
base64
235234
bigdecimal
236235
byebug
@@ -241,8 +240,7 @@ DEPENDENCIES
241240
net-pop (~> 0.1.1)
242241
net-smtp (~> 0.2.1)
243242
rack-mini-profiler (~> 2.0)
244-
railties (~> 7.1)
245-
securerandom (= 0.1.1)
243+
railties (~> 7.2.1)
246244
selenium-webdriver
247245
spring
248246
sprockets-rails (= 3.4.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.1
24+
config.load_defaults 7.2
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.

0 commit comments

Comments
 (0)