Skip to content

Commit a87ec3b

Browse files
k0kubunnobu
authored andcommitted
Fork stackprof and concurrent-ruby for deprecated API
1 parent 81bb0f6 commit a87ec3b

14 files changed

Lines changed: 83 additions & 22 deletions

File tree

benchmarks/activerecord/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ gem "activerecord-jdbcsqlite3-adapter", "~> 70", platform: :jruby
55
gem "mutex_m"
66
gem "bigdecimal"
77
gem "base64"
8+
gem "concurrent-ruby", github: "ruby-concurrency/concurrent-ruby"

benchmarks/activerecord/Gemfile.lock

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
GIT
2+
remote: https://github.com/ruby-concurrency/concurrent-ruby.git
3+
revision: 978eed6c317c523a5ce31769bdf46c0f947e6fdb
4+
specs:
5+
concurrent-ruby (1.3.5)
6+
17
GEM
28
remote: https://rubygems.org/
39
specs:
@@ -22,7 +28,6 @@ GEM
2228
uri (>= 0.13.1)
2329
base64 (0.3.0)
2430
bigdecimal (3.3.1)
25-
concurrent-ruby (1.3.5)
2631
connection_pool (3.0.2)
2732
drb (2.2.3)
2833
i18n (1.14.7)
@@ -50,6 +55,7 @@ DEPENDENCIES
5055
activerecord-jdbcsqlite3-adapter (~> 70)
5156
base64
5257
bigdecimal
58+
concurrent-ruby!
5359
mutex_m
5460
sqlite3
5561

@@ -59,7 +65,7 @@ CHECKSUMS
5965
activesupport (8.1.1) sha256=5e92534e8d0c8b8b5e6b16789c69dbea65c1d7b752269f71a39422e9546cea67
6066
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
6167
bigdecimal (3.3.1) sha256=eaa01e228be54c4f9f53bf3cc34fe3d5e845c31963e7fcc5bedb05a4e7d52218
62-
concurrent-ruby (1.3.5) sha256=813b3e37aca6df2a21a3b9f1d497f8cbab24a2b94cab325bffe65ee0f6cbebc6
68+
concurrent-ruby (1.3.5)
6369
connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
6470
drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
6571
i18n (1.14.7) sha256=ceba573f8138ff2c0915427f1fc5bdf4aa3ab8ae88c8ce255eb3ecf0a11a5d0f

benchmarks/erubi-rails/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ gem 'jbuilder', '~> 2.7'
3939
#gem 'bootsnap', '>= 1.4.4', require: false
4040

4141
gem 'mutex_m'
42+
gem 'concurrent-ruby', github: 'ruby-concurrency/concurrent-ruby'
4243

4344
group :development do
4445
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.

benchmarks/erubi-rails/Gemfile.lock

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
GIT
2+
remote: https://github.com/ruby-concurrency/concurrent-ruby.git
3+
revision: 978eed6c317c523a5ce31769bdf46c0f947e6fdb
4+
specs:
5+
concurrent-ruby (1.3.5)
6+
17
GEM
28
remote: https://rubygems.org/
39
specs:
@@ -59,7 +65,6 @@ GEM
5965
xpath (~> 3.2)
6066
cgi (0.5.0)
6167
childprocess (4.1.0)
62-
concurrent-ruby (1.3.5)
6368
connection_pool (2.5.3)
6469
crass (1.0.6)
6570
date (3.4.1)
@@ -210,6 +215,7 @@ DEPENDENCIES
210215
bigdecimal
211216
capybara (>= 3.26)
212217
cgi
218+
concurrent-ruby!
213219
jbuilder (~> 2.7)
214220
mutex_m
215221
net-imap (~> 0.2.1)
@@ -240,7 +246,7 @@ CHECKSUMS
240246
capybara (3.40.0) sha256=42dba720578ea1ca65fd7a41d163dd368502c191804558f6e0f71b391054aeef
241247
cgi (0.5.0) sha256=fe99f65bb2c146e294372ebb27602adbc3b4c008e9ea7038c6bd48c1ec9759da
242248
childprocess (4.1.0) sha256=3616ce99ccb242361ce7f2b19bf9ff3e6bc1d98b927c7edc29af8ca617ba6cd3
243-
concurrent-ruby (1.3.5) sha256=813b3e37aca6df2a21a3b9f1d497f8cbab24a2b94cab325bffe65ee0f6cbebc6
249+
concurrent-ruby (1.3.5)
244250
connection_pool (2.5.3) sha256=cfd74a82b9b094d1ce30c4f1a346da23ee19dc8a062a16a85f58eab1ced4305b
245251
crass (1.0.6) sha256=dc516022a56e7b3b156099abc81b6d2b08ea1ed12676ac7a5657617f012bd45d
246252
date (3.4.1) sha256=bf268e14ef7158009bfeaec40b5fa3c7271906e88b196d958a89d4b408abe64f

benchmarks/fluentd/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
44
gem 'csv'
55
gem 'fluentd'
66
gem 'base64'
7+
gem 'concurrent-ruby', github: 'ruby-concurrency/concurrent-ruby'

benchmarks/fluentd/Gemfile.lock

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
GIT
2+
remote: https://github.com/ruby-concurrency/concurrent-ruby.git
3+
revision: 978eed6c317c523a5ce31769bdf46c0f947e6fdb
4+
specs:
5+
concurrent-ruby (1.3.5)
6+
17
GEM
28
remote: https://rubygems.org/
39
specs:
@@ -20,7 +26,6 @@ GEM
2026
async-pool (0.11.0)
2127
async (>= 2.0)
2228
base64 (0.3.0)
23-
concurrent-ruby (1.3.5)
2429
console (1.33.0)
2530
fiber-annotation
2631
fiber-local (~> 1.1)
@@ -90,6 +95,7 @@ PLATFORMS
9095

9196
DEPENDENCIES
9297
base64
98+
concurrent-ruby!
9399
csv
94100
fluentd
95101

@@ -98,7 +104,7 @@ CHECKSUMS
98104
async-http (0.89.0) sha256=1a40728cf38ec4c3eff121474bd4f218237ffff177e471ca677b57d7aa436682
99105
async-pool (0.11.0) sha256=2228c4a8d1ca59a259b5f9dab7e0f9f23d57856b195aca1c0aa684a7439ea525
100106
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
101-
concurrent-ruby (1.3.5) sha256=813b3e37aca6df2a21a3b9f1d497f8cbab24a2b94cab325bffe65ee0f6cbebc6
107+
concurrent-ruby (1.3.5)
102108
console (1.33.0) sha256=a1cc1910e3b24169b4925e42d72da414d53e5bd6773aee9a811e57dfe0399384
103109
cool.io (1.9.1) sha256=2001bfec1b87ad5e87c0eb9f197a6ee6f1a0433ddba04002227da6ee8b74c6c1
104110
csv (3.3.5) sha256=6e5134ac3383ef728b7f02725d9872934f523cb40b961479f69cf3afa6c8e73f

benchmarks/lobsters/Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ gem 'scenic'
2222
#gem 'scenic-mysql_adapter'
2323
gem "activerecord-typedstore"
2424
gem 'sprockets-rails', '2.3.3'
25+
gem 'concurrent-ruby', github: 'ruby-concurrency/concurrent-ruby'
2526

2627
# js
2728
gem "jquery-rails", "~> 4.3"
@@ -52,7 +53,7 @@ group :development do
5253
gem 'flamegraph'
5354
gem 'memory_profiler'
5455
gem 'rack-mini-profiler'
55-
gem 'stackprof'
56+
gem 'stackprof', github: 'nobu/stackprof', branch: 'postponed_jobs'
5657
end
5758

5859
gem "oauth" # for twitter-posting bot

benchmarks/lobsters/Gemfile.lock

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
GIT
2+
remote: https://github.com/nobu/stackprof.git
3+
revision: 7d4b181569c04c9a35d0b4250cfbc535760ac18d
4+
branch: postponed_jobs
5+
specs:
6+
stackprof (0.2.27)
7+
8+
GIT
9+
remote: https://github.com/ruby-concurrency/concurrent-ruby.git
10+
revision: 978eed6c317c523a5ce31769bdf46c0f947e6fdb
11+
specs:
12+
concurrent-ruby (1.3.5)
13+
114
GIT
215
remote: https://github.com/ianks/commonmarker.git
316
revision: 6ea4f5a2be0423206dbaeca7108035a70a149ab7
@@ -115,7 +128,6 @@ GEM
115128
xpath (~> 3.2)
116129
cgi (0.5.0)
117130
chunky_png (1.4.0)
118-
concurrent-ruby (1.3.5)
119131
connection_pool (3.0.2)
120132
crack (1.0.0)
121133
bigdecimal
@@ -314,7 +326,6 @@ GEM
314326
sprockets (>= 2.8, < 4.0)
315327
sqlite3 (2.7.3)
316328
mini_portile2 (~> 2.8.0)
317-
stackprof (0.2.27)
318329
stringio (3.1.7)
319330
svg-graph (2.2.2)
320331
thor (1.4.0)
@@ -360,6 +371,7 @@ DEPENDENCIES
360371
capybara
361372
cgi
362373
commonmarker!
374+
concurrent-ruby!
363375
database_cleaner
364376
factory_bot_rails
365377
faker
@@ -390,7 +402,7 @@ DEPENDENCIES
390402
sitemap_generator
391403
sprockets-rails (= 2.3.3)
392404
sqlite3
393-
stackprof
405+
stackprof!
394406
svg-graph
395407
vcr
396408
webmock
@@ -421,7 +433,7 @@ CHECKSUMS
421433
cgi (0.5.0) sha256=fe99f65bb2c146e294372ebb27602adbc3b4c008e9ea7038c6bd48c1ec9759da
422434
chunky_png (1.4.0) sha256=89d5b31b55c0cf4da3cf89a2b4ebc3178d8abe8cbaf116a1dba95668502fdcfe
423435
commonmarker (2.6.1)
424-
concurrent-ruby (1.3.5) sha256=813b3e37aca6df2a21a3b9f1d497f8cbab24a2b94cab325bffe65ee0f6cbebc6
436+
concurrent-ruby (1.3.5)
425437
connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
426438
crack (1.0.0) sha256=c83aefdb428cdc7b66c7f287e488c796f055c0839e6e545fec2c7047743c4a49
427439
crass (1.0.6) sha256=dc516022a56e7b3b156099abc81b6d2b08ea1ed12676ac7a5657617f012bd45d
@@ -516,7 +528,7 @@ CHECKSUMS
516528
sprockets (3.7.5) sha256=72c20f256548f8a37fe7db41d96be86c3262fddaf4ebe9d69ec8317394fed383
517529
sprockets-rails (2.3.3) sha256=968794c910cc395ae10a68e3d4f5801f946b7698103e42ed49f7cad67d3654ef
518530
sqlite3 (2.7.3) sha256=d2b2fecd9341132f2cea3fde9061ee0fab9c9d532a8ecccfab4fe63d9621bf57
519-
stackprof (0.2.27) sha256=aff6d28656c852e74cf632cc2046f849033dc1dedffe7cb8c030d61b5745e80c
531+
stackprof (0.2.27)
520532
stringio (3.1.7) sha256=5b78b7cb242a315fb4fca61a8255d62ec438f58da2b90be66048546ade4507fa
521533
svg-graph (2.2.2) sha256=f928866403055e6539afdfdab5f6268d108b2abc9f002e0fc51b16511809513a
522534
thor (1.4.0) sha256=8763e822ccb0f1d7bee88cde131b19a65606657b847cc7b7b4b82e772bcd8a3d

benchmarks/railsbench/Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ end
1818

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

21-
gem 'stackprof', platforms: :mri
21+
gem 'stackprof', platforms: :mri, github: 'nobu/stackprof', branch: 'postponed_jobs'
2222
# Use sqlite3 as the database for Active Record
2323
gem 'sqlite3', platform: :ruby
2424
gem 'activerecord-jdbcsqlite3-adapter', '~> 70', platform: :jruby
@@ -28,6 +28,7 @@ gem 'webrick', '~> 1.8.2'
2828
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
2929
# Needed in the benchmark for json responses
3030
gem 'jbuilder', '~> 2.7'
31+
gem 'concurrent-ruby', github: 'ruby-concurrency/concurrent-ruby'
3132

3233
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
3334
# gem 'webpacker', '~> 4.0'

benchmarks/railsbench/Gemfile.lock

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
GIT
2+
remote: https://github.com/nobu/stackprof.git
3+
revision: 7d4b181569c04c9a35d0b4250cfbc535760ac18d
4+
branch: postponed_jobs
5+
specs:
6+
stackprof (0.2.27)
7+
8+
GIT
9+
remote: https://github.com/ruby-concurrency/concurrent-ruby.git
10+
revision: 978eed6c317c523a5ce31769bdf46c0f947e6fdb
11+
specs:
12+
concurrent-ruby (1.3.5)
13+
114
GEM
215
remote: https://rubygems.org/
316
specs:
@@ -73,7 +86,6 @@ GEM
7386
bigdecimal (3.3.1)
7487
builder (3.3.0)
7588
cgi (0.5.0)
76-
concurrent-ruby (1.3.5)
7789
connection_pool (3.0.2)
7890
crass (1.0.6)
7991
digest (3.2.0)
@@ -167,7 +179,6 @@ GEM
167179
sqlite3 (2.7.3)
168180
mini_portile2 (~> 2.8.0)
169181
sqlite3 (2.7.3-x86_64-linux-gnu)
170-
stackprof (0.2.27)
171182
strscan (3.1.5)
172183
thor (1.4.0)
173184
timeout (0.4.3)
@@ -198,6 +209,7 @@ DEPENDENCIES
198209
base64
199210
bigdecimal
200211
cgi
212+
concurrent-ruby!
201213
jbuilder (~> 2.7)
202214
mutex_m
203215
net-imap (~> 0.2.1)
@@ -206,7 +218,7 @@ DEPENDENCIES
206218
railties (~> 8.0)
207219
sprockets-rails (= 3.2.2)
208220
sqlite3
209-
stackprof
221+
stackprof!
210222
tzinfo-data
211223
webrick (~> 1.8.2)
212224

@@ -226,7 +238,7 @@ CHECKSUMS
226238
bigdecimal (3.3.1) sha256=eaa01e228be54c4f9f53bf3cc34fe3d5e845c31963e7fcc5bedb05a4e7d52218
227239
builder (3.3.0) sha256=497918d2f9dca528fdca4b88d84e4ef4387256d984b8154e9d5d3fe5a9c8835f
228240
cgi (0.5.0) sha256=fe99f65bb2c146e294372ebb27602adbc3b4c008e9ea7038c6bd48c1ec9759da
229-
concurrent-ruby (1.3.5) sha256=813b3e37aca6df2a21a3b9f1d497f8cbab24a2b94cab325bffe65ee0f6cbebc6
241+
concurrent-ruby (1.3.5)
230242
connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
231243
crass (1.0.6) sha256=dc516022a56e7b3b156099abc81b6d2b08ea1ed12676ac7a5657617f012bd45d
232244
digest (3.2.0) sha256=fa2e7092ec683f65d82fadde5ff4ca3b32e23ee0b19f1fc1a5e09993ad2d3991
@@ -270,7 +282,7 @@ CHECKSUMS
270282
sprockets-rails (3.2.2) sha256=62862bce136e31d7497eededde5f7730d4096bc8ef33ef7037c41423ccf89557
271283
sqlite3 (2.7.3) sha256=d2b2fecd9341132f2cea3fde9061ee0fab9c9d532a8ecccfab4fe63d9621bf57
272284
sqlite3 (2.7.3-x86_64-linux-gnu) sha256=11b2612fddf56602d238be7a984fa0633e591edd034f7520747bc0927b7fa865
273-
stackprof (0.2.27) sha256=aff6d28656c852e74cf632cc2046f849033dc1dedffe7cb8c030d61b5745e80c
285+
stackprof (0.2.27)
274286
strscan (3.1.5) sha256=f8413b90ea9395a69609a4414a8c88551bcda64337e234272c24fcd4c83e5947
275287
thor (1.4.0) sha256=8763e822ccb0f1d7bee88cde131b19a65606657b847cc7b7b4b82e772bcd8a3d
276288
timeout (0.4.3) sha256=9509f079b2b55fe4236d79633bd75e34c1c1e7e3fb4b56cb5fda61f80a0fe30e

0 commit comments

Comments
 (0)