Comments (7)
I've benchmarked Vapor at 5000+ requests per second returning a json response using apache bench on my laptop. We're using PHP7 on one of our work dev servers and it is certainly much, much faster than 5. Not only is it faster but the memory usage is also significant lower. That being said, as PHP is interpreted, IMHO it's not going to be as fast as Swift, which is compiled.
from vapor.
Thanks for your benchmark and I assumed you posted in HN as well. What you think of Go can be a potential as a Laravel framework clone if there is?
from vapor.
I would love to have a benchmark of Vapor vs other web frameworks that we could put in the Wiki.
from vapor.
Two options:
- Add Vapor to the Techempower benchmarks: https://www.techempower.com/benchmarks/#section=code&hw=peak&test=fortune
- Benchmark using a tool that is aware of Coordinated Omission (aka not
ab
). Doing your own benchmarks is still hard though: any non-trivial (writing static text isn't a benchmark) example takes a bit of work to write, and implementing that in other languages to compare can be a rabbit hole. Setting some goals (must turn a 8K data structure into JSON, must serialize and HMAC a cookie, etc) would be good.
Plus hey, 5000/req/s is 18 million requests an hour. Even at their peak hour, most web services won't see that kind of traffic!
from vapor.
While I haven't try Vapor yet, if you could compile with -fast optimization
that will covert code to LLVM?
On Monday, February 22, 2016, Matt Silverlock [email protected]
wrote:
Two option:
- Add Vapor to the Techempower benchmarks:
https://www.techempower.com/benchmarks/#section=code&hw=peak&test=fortune- Benchmark using a tool that is aware of Coordinated Omission
https://groups.google.com/forum/m/#!msg/mechanical-sympathy/icNZJejUHfE/BfDekfBEs_sJ
(aka not ab). Doing your own benchmarks is still hard though: any
non-trivial (writing static text isn't a benchmark) example takes a bit of
work to write, and implementing that in other languages to compare can be a
rabbit hole. Setting some goals (must turn a 8K data structure into JSON,
must serialize and HMAC a cookie, etc) would be good.Plus hey, 5000/req/s is 18 million requests an hour. Even at their peak
hour, most web services won't see that kind of traffic!—
Reply to this email directly or view it on GitHub
#43 (comment).
from vapor.
@elithrar The web frameworks benchmark looks like a great resource for development. I will add passing those benchmarks to the roadmap.
from vapor.
Added https://github.com/qutheory/vapor/wiki/Roadmap
from vapor.
Related Issues (20)
- Unable to test vapor using .xcodeproj project HOT 8
- Response compression handler not added for HTTP2 requests
- Updating HTTP server configuration on the fly (ie. TLS settings) HOT 3
- Double encoded post requests after recent update (4.89.3 → 4.91.1) HOT 1
- UserAuthnetication middleware is bypassed when auth object is not used HOT 2
- Query decoding broken in 4.90 HOT 3
- vapor and toolbox compile error on arch linux HOT 1
- double slash in URL no longer matches route handlers HOT 3
- URI semantics are broken HOT 1
- commùit
- Double slash in URLs still breaks route matching with variable parts in vapor 4.92.0 HOT 2
- Trying to build on Ubuntu 20 with swift run and getting Building for debugging... error: emit-module command failed due to signal 9 HOT 2
- Unable to shutdown server HOT 1
- Title
- Vapor URLQueryContainer no longer supports valueless query parameters HOT 4
- Swift Vapor-Save records in Mysql JSON data type during mapping with swift get error- Could not convert MySQL data to String: <MYSQL_TYPE_JSON HOT 6
- Large, streamed request body may result in noSignalReceived preconditionFailure crash HOT 6
- Websocket shouldUpgrade() fail causes empty reply from server HOT 4
- Cannot setup a route returning `[Int: String]` HOT 7
- Log actual port when it's picked by the OS
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 vapor.