Comments (7)
bjoern is a server, not a framework.
from bjoern.
Is there something wrong with the way I have run Bjoern ? Benchmarking Gunicorn vs Bjoern with hello-world POST request.
from bjoern.
What tool are you using for the benchmarks? Are you running them from the same host that the servers run on? Why are you using multiple workers for bjoern?
Don't expect huge differences in speed. Time spent in the web server will be roughly 5%, the other 95% is spent in your application code. For example if you make a single database query in your application code then the choice of web server simply doesn't matter anymore for performance.
from bjoern.
@jonashaag I am using Tsung for benchmarking
No, the tsung node and server nodes are different, however both have same configuration. Ubuntu 12.04.5 LTS (GNU/Linux 3.2.0-115-virtual x86_64)
Using two workers as there are 2 cores on the node.
The flask app simply returns the JSON it got from the POST request.
from bjoern.
I guess you're simply measuring network performance then, however I don't know what's wrong with your setup that you get such different request rates. I suggest you start your benchmarking with a simple hello world app.
from bjoern.
the flask app I am using just does this:
from flask import Flask, request, jsonify
app = Flask(__name__)
@app.route('/suggest/', methods=['POST'])
def hello():
content = request.get_json()
return jsonify(**content), 200
from bjoern.
That's not hello world and you're not running the tests from the same node. Start with the simplest possible setup.
from bjoern.
Related Issues (20)
- Bjoern 200-300 rps vs gunicorn 500/600 rps HOT 1
- site don't work
- pip install fails - missing http_parser.h HOT 2
- How to trigger server restart on source file changes? HOT 1
- Build fails on M1 Mac using Homebrew HOT 9
- calling from command line like gunicorn in Profcfile HOT 2
- Build bjoern error in mac m1 with command `pip3 install --global-option=build_ext --global-option="-I/opt/homebrew/include" bjoern` HOT 6
- Production use HOT 1
- Remove flask example HOT 5
- pip install not working on ubuntu 20.04 HOT 5
- Compilation terminated - fatal error: http_parser.h: No such file or directory HOT 1
- Extending to asgi HOT 7
- pip install error HOT 1
- Autostart after changes HOT 1
- broken pipe after running for a while HOT 3
- symbol not found in flat namespace '_ev_cleanup_start'
- pip installation fails (bjoern/request.h:4:10: fatal error: 'ev.h' file not found) HOT 2
- Apple Silicon build not supported. HOT 7
- ev.h not found; command /usr/bin/gcc exit failed with exit code 1 HOT 3
- Processed request response stuck when workers are not available HOT 20
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 bjoern.