rails_benchmark_suite 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91e21040658d2f8d0a124fb11303abb79414dfd190f541f161d5a8ee57acb55d
4
- data.tar.gz: 2dbc45c07dcfde15f3ec3ffecdf6b4056cf81359ef1013a61d252751676ef562
3
+ metadata.gz: 93d771423786c8f5cefc45aaabb973a6bf407d9025093a563ae938cf51562e1d
4
+ data.tar.gz: 3a1568af625855012c88f44ad6172bdf794accee645d6233a77bb956ff1c7e90
5
5
  SHA512:
6
- metadata.gz: 130dbb6e20e8fad126fe045254a8f1788db685d2dec43c82ea978a00011ae1a2f451deb0d0f6febbfd8ff78ff33a69e2443c83c82a1871f71d63a0ccafbf60ab
7
- data.tar.gz: 49e42a702f2bba44ac312f9c5d14b920cadaf1a2543bb23fd4e5be32996cf522fbc7e18143151c810c56a08abc49f85bd152b1657ff24139c29fd258e5d5d76c
6
+ metadata.gz: bf1b4acd86c9804e67b2d043441cdf09031dfc02d6152f36b486832b842d262bccf6d47ed5bc13a24fc795427498dc030c335b8d598543f067dd1a94db318011
7
+ data.tar.gz: 6d5c9d5310b5ab617cba3db8903da03fb14df73f6887dfed199ce2e073a1c3377a57e927b18f66c04d350b6c462affdb6e90d6cdcd0b5cd4764bf797a740e96f
data/Gemfile.lock CHANGED
@@ -1,15 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_benchmark_suite (0.2.0)
5
- actionview
6
- activerecord
7
- activestorage
8
- benchmark-ips
9
- concurrent-ruby
10
- get_process_mem
11
- image_processing
12
- sqlite3
4
+ rails_benchmark_suite (0.2.2)
5
+ actionview (~> 8.1)
6
+ activerecord (~> 8.1)
7
+ activestorage (~> 8.1)
8
+ benchmark-ips (~> 2.14)
9
+ concurrent-ruby (~> 1.3)
10
+ get_process_mem (~> 1.0)
11
+ image_processing (~> 1.14)
12
+ sqlite3 (~> 2.8)
13
13
 
14
14
  GEM
15
15
  remote: https://rubygems.org/
@@ -96,8 +96,7 @@ GEM
96
96
  mini_magick (5.3.1)
97
97
  logger
98
98
  mini_portile2 (2.8.9)
99
- minitest (6.0.1)
100
- prism (~> 1.5)
99
+ minitest (5.27.0)
101
100
  nokogiri (1.19.0)
102
101
  mini_portile2 (~> 2.8.2)
103
102
  racc (~> 1.4)
@@ -117,7 +116,6 @@ GEM
117
116
  racc (~> 1.4)
118
117
  nokogiri (1.19.0-x86_64-linux-musl)
119
118
  racc (~> 1.4)
120
- prism (1.7.0)
121
119
  racc (1.8.1)
122
120
  rack (3.2.4)
123
121
  rack-session (2.1.1)
@@ -166,10 +164,13 @@ PLATFORMS
166
164
  x86_64-linux-musl
167
165
 
168
166
  DEPENDENCIES
169
- bundler
170
- minitest
167
+ bundler (~> 2.5)
168
+ minitest (~> 5.0)
171
169
  rails_benchmark_suite!
172
- rake
170
+ rake (~> 13.0)
171
+
172
+ RUBY VERSION
173
+ ruby 3.4.1p0
173
174
 
174
175
  BUNDLED WITH
175
- 2.5.9
176
+ 2.6.2
@@ -15,6 +15,23 @@ module RailsBenchmarkSuite
15
15
  end
16
16
 
17
17
  def run
18
+ # Senior Fix: Isolate from host application's database with Shared Cache (v0.2.4)
19
+ ActiveRecord::Base.establish_connection(
20
+ adapter: "sqlite3",
21
+ database: "file::memory:?cache=shared",
22
+ pool: 16,
23
+ timeout: 5000
24
+ )
25
+
26
+ # SQLite Performance Tuning for multi-threaded benchmarks
27
+ db = ActiveRecord::Base.connection.raw_connection
28
+ db.execute("PRAGMA journal_mode = WAL") # Write-Ahead Logging
29
+ db.execute("PRAGMA synchronous = NORMAL") # Faster writes
30
+ db.execute("PRAGMA busy_timeout = 5000") # Wait for lock instead of crashing
31
+
32
+ # Load Schema
33
+ RailsBenchmarkSuite::Schema.load
34
+
18
35
  puts "Running RailsBenchmarkSuite Benchmarks..." unless @json_output
19
36
  puts system_report unless @json_output
20
37
  puts "\n" unless @json_output
@@ -1,3 +1,3 @@
1
1
  module RailsBenchmarkSuite
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -18,17 +18,6 @@ module RailsBenchmarkSuite
18
18
  end
19
19
 
20
20
  def self.run(json: false)
21
- # Enforce database isolation: Always use in-memory SQLite, ignoring host app DB
22
- ActiveRecord::Base.establish_connection(
23
- adapter: "sqlite3",
24
- database: "file:rails_benchmark_suite_mem?mode=memory&cache=shared",
25
- pool: 20,
26
- timeout: 10000
27
- )
28
-
29
- # Load Schema
30
- RailsBenchmarkSuite::Schema.load
31
-
32
21
  # Load suites
33
22
  Dir[File.join(__dir__, "rails_benchmark_suite", "suites", "*.rb")].each { |f| require f }
34
23
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_benchmark_suite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - RailsBenchmarkSuite Contributors