Skip to content
Open
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
8 changes: 2 additions & 6 deletions frameworks/Ruby/padrino/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ gem 'slim', '2.0.3'
gem 'padrino', git: 'https://github.com/padrino/padrino-framework.git'
gem 'rack'

group :puma, optional: true do
gem 'puma', '~> 7.1', require: false
end

group :unicorn, optional: true do
gem 'unicorn', '~> 6.1', platforms: [:ruby, :windows], require: false
group :iodine, optional: true do
gem "iodine", "~> 0.7", require: false
end
12 changes: 2 additions & 10 deletions frameworks/Ruby/padrino/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ GEM
drb (2.2.1)
i18n (1.14.7)
concurrent-ruby (~> 1.0)
iodine (0.7.58)
json (2.11.3)
kgio (2.11.4)
logger (1.6.6)
mail (2.8.1)
mini_mime (>= 0.1.1)
Expand All @@ -93,9 +93,6 @@ GEM
timeout
net-smtp (0.5.1)
net-protocol
nio4r (2.7.4)
puma (7.1.0)
nio4r (~> 2.0)
rack (3.1.18)
rack-protection (4.1.1)
base64 (>= 0.1.0)
Expand All @@ -106,7 +103,6 @@ GEM
rack (>= 3.0.0)
rackup (2.2.1)
rack (>= 3)
raindrops (0.20.1)
ruby2_keywords (0.0.5)
securerandom (0.4.1)
sinatra (4.1.1)
Expand All @@ -125,9 +121,6 @@ GEM
timeout (0.4.3)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicorn (6.1.0)
kgio (~> 2.6)
raindrops (~> 0.7)
uri (1.0.3)

PLATFORMS
Expand All @@ -137,13 +130,12 @@ PLATFORMS

DEPENDENCIES
activerecord (>= 7.1)
iodine (~> 0.7)
json
mysql2 (> 0.5)
padrino!
puma (~> 7.1)
rack
slim (= 2.0.3)
unicorn (~> 6.1)

BUNDLED WITH
2.7.0
9 changes: 2 additions & 7 deletions frameworks/Ruby/padrino/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,9 @@ comparing a variety of web servers.
## Infrastructure Software Versions
The tests were run with:

* [Ruby 2.0.0-p0](http://www.ruby-lang.org/)
* [JRuby 1.7.8](http://jruby.org/)
* [Rubinius 2.2.10](http://rubini.us/)
* [Ruby 3.5](http://www.ruby-lang.org/)
* [Padrino 0.12.3](http://www.padrinorb.com/)
* [Rack 1.5.2](http://rack.github.com/)
* [Unicorn 4.8.3](http://unicorn.bogomips.org/)
* [Puma 3.9](http://puma.io/)
* [Thin 1.6.2](http://code.macournoyer.com/thin/)
* [Iodine](https://github.com/boazsegev/iodine)

## Paths & Source for Tests

Expand Down
28 changes: 3 additions & 25 deletions frameworks/Ruby/padrino/benchmark_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,6 @@
"framework": "padrino",
"tests": [{
"default": {
"json_url": "/json",
"db_url": "/db",
"query_url": "/queries?queries=",
"fortune_url": "/fortunes",
"update_url": "/updates?queries=",
"plaintext_url": "/plaintext",
"port": 8080,
"approach": "Realistic",
"classification": "Micro",
"database": "MySQL",
"framework": "padrino",
"language": "Ruby",
"orm": "Full",
"platform": "Rack",
"webserver": "Puma",
"os": "Linux",
"database_os": "Linux",
"display_name": "padrino [puma]",
"notes": "",
"versus": "rack-puma-mri"
},
"unicorn": {
"json_url": "/json",
"db_url": "/db",
"query_url": "/queries?queries=",
Expand All @@ -38,12 +16,12 @@
"language": "Ruby",
"orm": "Full",
"platform": "Rack",
"webserver": "Unicorn",
"webserver": "Iodine",
"os": "Linux",
"database_os": "Linux",
"display_name": "padrino [unicorn]",
"display_name": "padrino",
"notes": "",
"versus": "rack-unicorn"
"versus": "rack-iodine"
}
}]
}
21 changes: 2 additions & 19 deletions frameworks/Ruby/padrino/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,5 @@ database_os = "Linux"
os = "Linux"
orm = "Full"
platform = "Rack"
webserver = "Puma"
versus = "rack-puma-mri"

[unicorn]
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-unicorn"
webserver = "Iodine"
versus = "rack-iodine"
158 changes: 0 additions & 158 deletions frameworks/Ruby/padrino/config/nginx.conf

This file was deleted.

9 changes: 0 additions & 9 deletions frameworks/Ruby/padrino/config/puma.rb

This file was deleted.

15 changes: 0 additions & 15 deletions frameworks/Ruby/padrino/config/unicorn.rb

This file was deleted.

23 changes: 0 additions & 23 deletions frameworks/Ruby/padrino/padrino-unicorn.dockerfile

This file was deleted.

5 changes: 3 additions & 2 deletions frameworks/Ruby/padrino/padrino.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ COPY Gemfile Gemfile
COPY Gemfile.lock Gemfile.lock
COPY Rakefile Rakefile

RUN bundle config set with 'puma'
RUN bundle config set with 'iodine'
RUN bundle install --jobs=4 --gemfile=/padrino/Gemfile

EXPOSE 8080

ENV RUBY_YJIT_ENABLE=1
ENV RACK_ENV=production

CMD bundle exec puma -C config/puma.rb
CMD bundle exec iodine -p 8080 -w $(ruby config/auto_tune.rb | grep -Eo '[0-9]+' | head -n 1)
Loading