Comments (5)
Hi,
Thanks for suggestions, i will surely gave it a try: indeed i had a raw iron server benchmarked some months ago and it was speedy!
I will add it soon!
from app-servers.
Added Rust+Iron to the pack: i was expecting a better throughput anyway.
I will try to run benchmarks on a new workstation (SSD) once i will get it, to see if the numbers changes.
Best
from app-servers.
Cool, thanks for trying Rust! 😄
Iron is probably so slow because it includes a whole router. I think it compares more to Sinatra or Kemal than a bare HTTP server. Maybe it could be more optimized, but it's nice for a "hello world" bench.
I just verified that using the hyper HTTP server lib that powers Iron is a lot faster: wrk2 gives +/- 79k req/sec. It's still terrible but running on battery on my 2011 Lenovo X220, it's not so bad. 😇
If you're curious, use Hyper's example with a Cargo.toml like this one:
[package]
name = "hyper-server"
version = "0.1.0"
[dependencies]
hyper = { git = "https://github.com/hyperium/hyper.git" }
env_logger = "*"
num_cpus = "*"
Cheers!
from app-servers.
Thanks!
I apologize, since i'm not a rustacean yet ;)
It surely make more sense adding it without a router. I will replace the Iron server with a plain Hyper HTTP app.
Thanks!
from app-servers.
Replaced Iron example with Hyper HTTP one and throughput on my MacBook improved of about 10000 req/sec!
Memory footprint instead triplicated compared to Iron, maybe there's some optimization that can be done on the "Hello World" example you shared.
Best
from app-servers.
Related Issues (20)
- Test accuracy could be improved HOT 4
- Clojure analysis HOT 3
- Test results qualification HOT 3
- Add launcher scripts and benchmark logging HOT 1
- ASP.NET Core HOT 5
- Add ponylang HOT 6
- Wrk on local host HOT 2
- Feedback HOT 16
- Maybe you can also include D + Vibe.d HOT 12
- Vibe.d running debug build + possible Bug in detection threadsPerCpu HOT 5
- update dartlang to v2 HOT 1
- Alternative NodeJS HTTP Server HOT 2
- A Faster Python Server Alternative HOT 2
- Httpbeast is compiled without threads support HOT 1
- ASP.NET Core built in Debug mode? HOT 2
- Multi-threaded httpbeast HOT 1
- Dart [aot] HOT 1
- Dart2Native benchmark HOT 4
- Support for PHP 7.4 with "amphp http-server" and "ReactPhp httpServer"
- could upgrade to dart 2.8 and compare the JIT AOT version
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 app-servers.