Giter VIP home page Giter VIP logo

Comments (7)

waghanza avatar waghanza commented on June 6, 2024

sure, it could be a good idea.

I think we have to discuss about production-ready benchmarks -> using a database, caches ...

from web-frameworks.

OvermindDL1 avatar OvermindDL1 commented on June 6, 2024

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.

greenlaw110 avatar greenlaw110 commented on June 6, 2024

@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.

waghanza avatar waghanza commented on June 6, 2024

@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.

OvermindDL1 avatar OvermindDL1 commented on June 6, 2024

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.

waghanza avatar waghanza commented on June 6, 2024

Sure @OvermindDL1, but what do you propose?

from web-frameworks.

OvermindDL1 avatar OvermindDL1 commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.