File tree Expand file tree Collapse file tree 3 files changed +3
-32
lines changed
frameworks/Ruby/roda-sequel Expand file tree Collapse file tree 3 files changed +3
-32
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,7 @@ comparing a variety of web platforms.
13
13
The tests will be run with:
14
14
15
15
* [ Ruby 3.3] ( http://www.ruby-lang.org )
16
- * [ JRuby 9.1] ( http://jruby.org )
17
- * [ Rubinius 3] ( https://rubinius.com ) \*
18
- * [ Puma 3] ( http://puma.io )
16
+ * [ Puma 6] ( http://puma.io )
19
17
* [ Passenger 5] ( https://www.phusionpassenger.com )
20
18
* [ Unicorn 5] ( https://bogomips.org/unicorn/ )
21
19
* [ Roda 3] ( http://roda.jeremyevans.net )
Original file line number Diff line number Diff line change @@ -29,24 +29,17 @@ def connect(dbtype)
29
29
30
30
adapters = {
31
31
mysql : {
32
- jruby : "jdbc:mysql" ,
33
32
mri : "mysql2"
34
33
} ,
35
34
postgresql : {
36
- jruby : "jdbc:postgresql" ,
37
35
mri : "postgres"
38
36
}
39
37
}
40
38
41
39
opts = { }
42
40
43
41
# Determine threading/thread pool size and timeout
44
- if defined? ( JRUBY_VERSION )
45
- opts [ :max_connections ] = (
46
- 2 * Math . log ( Integer ( ENV . fetch ( "MAX_CONCURRENCY" ) ) )
47
- ) . floor
48
- opts [ :pool_timeout ] = 10
49
- elsif defined? ( Puma ) &&
42
+ if defined? ( Puma ) &&
50
43
( threads = Puma . cli_config . options . fetch ( :max_threads ) ) > 1
51
44
opts [ :max_connections ] = ( 2 * Math . log ( threads ) ) . floor
52
45
opts [ :pool_timeout ] = 10
@@ -57,9 +50,7 @@ def connect(dbtype)
57
50
Sequel . connect "%{adapter}://%{host}/%{database}?user=%{user}&password=%{password}" %
58
51
{
59
52
adapter :
60
- adapters . fetch ( dbtype ) . fetch (
61
- defined? ( JRUBY_VERSION ) ? :jruby : :mri
62
- ) ,
53
+ adapters . fetch ( dbtype ) . fetch ( :mri ) ,
63
54
host : "tfb-database" ,
64
55
database : "hello_world" ,
65
56
user : "benchmarkdbuser" ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments