Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions frameworks/Ruby/sinatra-sequel/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,3 @@ end
group :puma, optional: true do
gem 'puma', '~> 6.4', require: false
end

group :unicorn, optional: true do
gem 'unicorn', '~> 6.1', platforms: [:ruby, :mswin], require: false
end
6 changes: 0 additions & 6 deletions frameworks/Ruby/sinatra-sequel/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ GEM
bigdecimal (3.1.9)
iodine (0.7.58)
json (2.11.3)
kgio (2.11.4)
logger (1.6.6)
mustermann (3.0.3)
ruby2_keywords (~> 0.0.1)
Expand All @@ -22,7 +21,6 @@ GEM
rack-session (2.1.0)
base64 (>= 0.1.0)
rack (>= 3.0.0)
raindrops (0.20.1)
ruby2_keywords (0.0.5)
sequel (5.90.0)
bigdecimal
Expand All @@ -37,9 +35,6 @@ GEM
rack-session (>= 2.0.0, < 3)
tilt (~> 2.0)
tilt (2.6.0)
unicorn (6.1.0)
kgio (~> 2.6)
raindrops (~> 0.7)

PLATFORMS
ruby
Expand All @@ -55,7 +50,6 @@ DEPENDENCIES
sequel (~> 5.0)
sequel_pg (~> 1.6)
sinatra (~> 4.0)
unicorn (~> 6.1)

BUNDLED WITH
2.6.2
4 changes: 0 additions & 4 deletions frameworks/Ruby/sinatra-sequel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ comparing a variety of web platforms.
The tests will be run with:

* [Ruby 3.4](http://www.ruby-lang.org)
* [JRuby 9.4](http://jruby.org)
* [Puma 6](http://puma.io)
* [Passenger 6](https://www.phusionpassenger.com)
* [Unicorn 5](https://bogomips.org/unicorn/)
* [Sinatra 4](http://www.sinatrarb.com)
* [Sequel 5](http://sequel.jeremyevans.net)
* [Slim 3](http://slim-lang.com)
* [MySQL 5.5](https://www.mysql.com)
* [Postgres 9.3](https://www.postgresql.org)

Expand Down
20 changes: 0 additions & 20 deletions frameworks/Ruby/sinatra-sequel/benchmark_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,26 +61,6 @@
"display_name": "sinatra-sequel-postgres-iodine-mri",
"versus": "rack-sequel-postgres-iodine-mri",
"notes": ""
},
"postgres-unicorn-mri": {
"db_url": "/db",
"query_url": "/queries?queries=",
"fortune_url": "/fortunes",
"update_url": "/updates?queries=",
"port": 8080,
"approach": "Realistic",
"classification": "Micro",
"database": "Postgres",
"framework": "sinatra",
"language": "Ruby",
"orm": "Full",
"platform": "Rack",
"webserver": "Unicorn",
"os": "Linux",
"database_os": "Linux",
"display_name": "sinatra-sequel-postgres-unicorn-mri",
"versus": "rack-sequel-postgres-unicorn-mri",
"notes": ""
}
}
]
Expand Down
16 changes: 7 additions & 9 deletions frameworks/Ruby/sinatra-sequel/boot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ def connect(dbtype)
Bundler.require(dbtype) # Load database-specific modules

adapters = {
:mysql=>{ :jruby=>'jdbc:mysql', :mri=>'mysql2' },
:postgresql=>{ :jruby=>'jdbc:postgresql', :mri=>'postgres' }
mysql: 'mysql2',
postgresql: 'postgres'
}

opts = {}
Expand All @@ -26,17 +26,15 @@ def connect(dbtype)
if defined?(Puma) && (threads = Puma.cli_config.options.fetch(:max_threads)) > 1
opts[:max_connections] = (2 * Math.log(threads)).floor
opts[:pool_timeout] = 10
elsif defined?(Unicorn)
Sequel.single_threaded = true
end

Sequel.connect \
'%{adapter}://%{host}/%{database}?user=%{user}&password=%{password}' % {
:adapter=>adapters.fetch(dbtype).fetch(defined?(JRUBY_VERSION) ? :jruby : :mri),
:host=>'tfb-database',
:database=>'hello_world',
:user=>'benchmarkdbuser',
:password=>'benchmarkdbpass'
adapter: (dbtype == :mysql ? 'mysql2' : 'postgresql'),
host: 'tfb-database',
database: 'hello_world',
user: 'benchmarkdbuser',
password: 'benchmarkdbpass'
}, opts
end

Expand Down
68 changes: 0 additions & 68 deletions frameworks/Ruby/sinatra-sequel/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,71 +34,3 @@ orm = "Full"
platform = "Rack"
webserver = "Puma"
versus = "rack-sequel-puma-mri"

[postgres-passenger-mri]
urls.plaintext = "/plaintext"
urls.json = "/json"
urls.db = "/db"
urls.query = "/queries?queries="
urls.update = "/updates?queries="
urls.fortune = "/fortunes"
approach = "Realistic"
classification = "Micro"
database = "Postgres"
database_os = "Linux"
os = "Linux"
orm = "Full"
platform = "Rack"
webserver = "Passenger"
versus = "rack-sequel-postgres-passenger-mri"

[postgres-unicorn-mri]
urls.plaintext = "/plaintext"
urls.json = "/json"
urls.db = "/db"
urls.query = "/queries?queries="
urls.update = "/updates?queries="
urls.fortune = "/fortunes"
approach = "Realistic"
classification = "Micro"
database = "Postgres"
database_os = "Linux"
os = "Linux"
orm = "Full"
platform = "Rack"
webserver = "Unicorn"
versus = "rack-sequel-postgres-unicorn-mri"

[passenger-mri]
urls.plaintext = "/plaintext"
urls.json = "/json"
urls.db = "/db"
urls.query = "/queries?queries="
urls.update = "/updates?queries="
urls.fortune = "/fortunes"
approach = "Realistic"
classification = "Micro"
database = "MySQL"
database_os = "Linux"
os = "Linux"
orm = "Full"
platform = "Rack"
webserver = "Passenger"
versus = "rack-sequel-passenger-mri"

[unicorn-mri]
urls.plaintext = "/plaintext"
urls.json = "/json"
urls.db = "/db"
urls.query = "/queries?queries="
urls.update = "/updates?queries="
urls.fortune = "/fortunes"
approach = "Realistic"
classification = "Micro"
database = "MySQL"
database_os = "Linux"
os = "Linux"
orm = "Full"
platform = "Rack"
webserver = "Unicorn"
versus = "rack-sequel-unicorn-mri"
6 changes: 0 additions & 6 deletions frameworks/Ruby/sinatra-sequel/config/mri_unicorn.rb

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions frameworks/Ruby/sinatra/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,3 @@ end
group :puma, optional: true do
gem 'puma', '~> 6.4', require: false
end

group :unicorn, optional: true do
gem 'unicorn', '~> 6.1', platforms: [:ruby, :mswin], require: false
end
20 changes: 0 additions & 20 deletions frameworks/Ruby/sinatra/benchmark_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,26 +65,6 @@
"display_name": "sinatra-postgres-iodine-mri",
"versus": "rack-postgres-iodine-mri",
"notes": ""
},
"postgres-unicorn-mri": {
"db_url": "/db",
"query_url": "/queries?queries=",
"fortune_url": "/fortunes",
"update_url": "/updates?queries=",
"port": 8080,
"approach": "Realistic",
"classification": "Micro",
"database": "Postgres",
"framework": "sinatra",
"language": "Ruby",
"orm": "Full",
"platform": "Rack",
"webserver": "Unicorn",
"os": "Linux",
"database_os": "Linux",
"display_name": "sinatra-postgres-unicorn-mri",
"versus": "rack-postgres-unicorn-mri",
"notes": ""
}
}
]
Expand Down
15 changes: 6 additions & 9 deletions frameworks/Ruby/sinatra/boot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,15 @@ def connect(dbtype)
Bundler.require(dbtype) # Load database-specific modules

opts = {
:adapter=>(dbtype == :mysql ? 'mysql2' : 'postgresql'),
:username=>'benchmarkdbuser',
:password=>'benchmarkdbpass',
:host=>'tfb-database',
:database=>'hello_world'
adapter: (dbtype == :mysql ? 'mysql2' : 'postgresql'),
username: 'benchmarkdbuser',
password: 'benchmarkdbpass',
host: 'tfb-database',
database: 'hello_world'
}

# Determine threading/thread pool size and timeout
if defined?(JRUBY_VERSION)
opts[:pool] = (2 * Math.log(Integer(ENV.fetch('MAX_CONCURRENCY')))).floor
opts[:checkout_timeout] = 10
elsif defined?(Puma) && (threads = Puma.cli_config.options.fetch(:max_threads)) > 1
if defined?(Puma) && (threads = Puma.cli_config.options.fetch(:max_threads)) > 1
opts[:pool] = (2 * Math.log(threads)).floor
opts[:checkout_timeout] = 10
else
Expand Down
6 changes: 0 additions & 6 deletions frameworks/Ruby/sinatra/config/mri_unicorn.rb

This file was deleted.

20 changes: 0 additions & 20 deletions frameworks/Ruby/sinatra/sinatra-postgres-unicorn-mri.dockerfile

This file was deleted.

Loading