Comments (9)
Yeah. The rps for sinatra definitely looks low. Could be the static file check on each request. There's also MethodOverride, ShowExceptions and a few other middleware added by default. I'll play with tuning it sometime this weekend and see what I can figure out.
from camping.
Added here http://github.com/DAddYE/web-frameworks-benchmark also benches with rendering. Some results:
# Advanced render Padrino => 731.75 rps Sinatra => 706.52 rps Merb => 480.03 rps Rack => 253.23 rps Rails => 207.85 rps Ramaze => 177.13 rps Camping => 155.96 rps # Basic render Merb => 1512.85 rps Rack => 1502.72 rps Padrino => 1390.95 rps Sinatra => 1113.27 rps Camping => 960.18 rps Rails => 337.53 rps Ramaze => 256.69 rps
There are few reason why sinatra seems slower one of them is for example logger.
Then there are one small pseudo-critical problem (but is not here the place).
from camping.
Updated results.
from camping.
Just so everybody knows: In these rendering examples, Camping uses Markaby while the others uses Haml. I believe Camping is faster than Sinatra when we'll get Haml support (see #18).
from camping.
With the latest gem install camping --source http://gems.judofyr.net/
and my benchmark fork, it gets even worse:
# Text render
Rack => 2737.31 rps
Camping => 2008.31 rps
Sinatra => 1378.25 rps
# Template render
Rack => 2616.19 rps
Camping => 1489.69 rps
Sinatra => 978.52 rps
# More advanced example
Rack => 1284.13 rps
Camping => 1255.25 rps
Sinatra => 797.33 rps
from camping.
Hm, apparently Sinatra should run faster with:
disable :static
disable :logging
I tried it on the more_advanced example and couldn't really notice a difference. Oh well, some of you Sinatra guys will have to figure that out.
from camping.
I tuned the text_render Sinatra benchmark a bit. Before:
Rack => 3415.93 rps
Sinatra => 1990.83 rps
After:
Rack => 3284.83 rps
Sinatra => 2550.25 rps
from camping.
Tuned the more_advanced Sinatra benchmark a bit too. Before:
Rack => 1900.21 rps
Sinatra => 899.0 rps
After:
Rack => 1873.83 rps
Sinatra => 1107.38 rps
from camping.
Excellent. I've merged your changes, fixed Rack performance and updated Camping to 2.1: http://github.com/judofyr/web-frameworks-benchmark. I've sent the Padrino guys a pull-request, so hopefully they will redo the benchmark.
Closing this for now!
from camping.
Related Issues (20)
- [Chore] Rubygems release HOT 19
- New Spec for Routing HOT 14
- Add Zeitwerk Autoloading, Establish loading procedure.
- How to return return json and pdf. HOT 1
- Camping Audit
- Write Config.kdl guide
- Use KDL as the settings/config file thingy HOT 1
- Add Rack 3.0 Linter to Tests
- Officially support Windows again
- Write Tests for generator HOT 1
- Rename Master Branch to Main (Again) HOT 1
- Fix Reloader HOT 3
- Gem dependencies are not fully documented in the ReadMe HOT 11
- Camping Server isn't Properly Tested.
- Add simpler DSL support for straight up mapping requests to a camping app.
- Add Markaby back as a dependency
- Add RAKE task to release new gem
- Make passkeys the default authentication option HOT 2
- Getting error when trying out camping book section 02 on models HOT 1
- RubyGems page still lists camping.rubyforge.org as homepage HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from camping.