rails_benchmark_suite 0.2.0 → 0.2.2

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: 67247c6ec0477941501c1ab15dcbfabd044faa44e790a55e3cf522013bdced08
4
- data.tar.gz: bbeab62787dc1a0a2d09dd0069ba3fd963a76de3a15fcdd950c49e0d36a8e388
3
+ metadata.gz: 91e21040658d2f8d0a124fb11303abb79414dfd190f541f161d5a8ee57acb55d
4
+ data.tar.gz: 2dbc45c07dcfde15f3ec3ffecdf6b4056cf81359ef1013a61d252751676ef562
5
5
  SHA512:
6
- metadata.gz: c66eaaedc346d2f66f36412d3032de8ef516cca05a2b36c603e3b449ec3ace814370e5347df5ce59acf0126fb3b10c16e5c91950b6a7e3d3a8f5e326d6b92452
7
- data.tar.gz: f0cccded74018456e96b160301e59f0beb4bf787146b4f3939d63e999e48a040c256c8bb17bac3e9b7e41c68895b21dd96827cc2cb4ed54408a402b6a6927b53
6
+ metadata.gz: 130dbb6e20e8fad126fe045254a8f1788db685d2dec43c82ea978a00011ae1a2f451deb0d0f6febbfd8ff78ff33a69e2443c83c82a1871f71d63a0ccafbf60ab
7
+ data.tar.gz: 49e42a702f2bba44ac312f9c5d14b920cadaf1a2543bb23fd4e5be32996cf522fbc7e18143151c810c56a08abc49f85bd152b1657ff24139c29fd258e5d5d76c
@@ -5,16 +5,3 @@ require "sqlite3"
5
5
 
6
6
  # Silence ActiveRecord logs during benchmarks to avoid IO bottlenecks
7
7
  ActiveRecord::Base.logger = nil
8
-
9
- # Setup In-Memory SQLite globally for all suites
10
- # storage_config = ActiveRecord::DatabaseConfigurations::HashConfig.new("test", "sqlite3", { adapter: "sqlite3", database: ":memory:" })
11
- # Use shared cache to allow threads to see the same in-memory database
12
- # Skip internal database setup if running within a Rails application
13
- unless defined?(Rails)
14
- ActiveRecord::Base.establish_connection(
15
- adapter: "sqlite3",
16
- database: "file:rails_benchmark_suite_mem?mode=memory&cache=shared",
17
- pool: 20,
18
- timeout: 10000
19
- )
20
- end
@@ -1,4 +1,3 @@
1
- # frozen_string_literal: true
2
1
  module RailsBenchmarkSuite
3
- VERSION = "0.2.0"
2
+ VERSION = "0.2.2"
4
3
  end
@@ -18,6 +18,14 @@ 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
+
21
29
  # Load Schema
22
30
  RailsBenchmarkSuite::Schema.load
23
31
 
metadata CHANGED
@@ -1,10 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_benchmark_suite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - RailsBenchmarkSuite Contributors
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
11
  date: 2026-01-02 00:00:00.000000000 Z
@@ -203,6 +204,7 @@ metadata:
203
204
  source_code_uri: https://github.com/overnet/rails_benchmark_suite
204
205
  bug_tracker_uri: https://github.com/overnet/rails_benchmark_suite/issues
205
206
  changelog_uri: https://github.com/overnet/rails_benchmark_suite/blob/main/CHANGELOG.md
207
+ post_install_message:
206
208
  rdoc_options: []
207
209
  require_paths:
208
210
  - lib
@@ -217,7 +219,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
217
219
  - !ruby/object:Gem::Version
218
220
  version: '0'
219
221
  requirements: []
220
- rubygems_version: 3.6.2
222
+ rubygems_version: 3.5.22
223
+ signing_key:
221
224
  specification_version: 4
222
225
  summary: Rails-style functionality & performance benchmark tool
223
226
  test_files: []