Comments (7)
sure, it could be a good idea.
I think we have to discuss about production-ready benchmarks -> using a database, caches ...
from web-frameworks.
It shouldn't be a static set of bytes either (else most good frameworks will just kernel-switch the entire memory set to the pipe, which is not really a good test), rather it should duplicate and echo the data passed in or something.
EDIT: Maybe just a single route for those 3 that takes 2 parameters, one is the duplication count, the other is the string to duplicate the number of times.
from web-frameworks.
@waghanza do we have plan to implement more testing? As the name suggest this is performance benchmakr for web-frameworks, however there are so many places that can be benchmarked for a web-framework, thing like complex routing, database read/write, JSON parsing, complex request with mutliple parameters, post request with form or JSON payload in body etc.
from web-frameworks.
@greenlaw110 #1728 is a better place to discuss about that.
However, I think that hard-coding a sleep
can be useful (for each endpoint). It can mimic database calls (without adding complexity)
from web-frameworks.
Sleep on the other hand will halt the thread while it sleeps, where accessing the database is async, so that's not quite accurate. Plus the granularity of sleep is ~15ms on average (OS depending) or slightly greater than 1ms on average in high resolution modes, which can also be a good bit slower than accessing a well tuned database.
from web-frameworks.
Sure @OvermindDL1, but what do you propose?
from web-frameworks.
Most frameworks should have some method to async sleep, that is what should be used as it would accurately represent a database transaction. For those frameworks that don't have an async sleep then normal sleep can be used, of which that would also accurately represent a database transaction since if those frameworks don't have async then they have to halt for the database to respond back anyway. I'd imagine almost all except the very basic frameworks would have async though.
from web-frameworks.
Related Issues (20)
- [Java] Revamp spring
- [Python] Use 3.12 for happyx
- [C++] Force version usage for oat++
- [C++] Clarify version in results fgor oat++
- [PHP] Use fpm image only if engine is php-fpm
- [PHP] Add reactphp for chubbyphp
- [PHP] Add https://github.com/dunglas/frankenphp
- [PHP] Add https://github.com/dunglas/frankenphp
- Compile on CI with debug flags
- [Java] Add helidon microprofile
- [Crystal] Update orion to 4.0
- [PHP] Use one docker ayer forextensions and modules
- [Ruby] Should we update the Rails/Ruby tests to use YJIT? HOT 4
- Why not use wrk2? HOT 4
- [Dart] Try to remove shell copying onto minimal container
- uWebSockets (javascript framework) is not included in the latest release [2024-01-23 (19a4d71)] HOT 1
- [JavaScript] Update spiffy version in results
- [V] Set bootstrap in config
- hono is only tested using node, should be tested using bun HOT 6
- [Javascript] Use pup for deno
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 web-frameworks.