GithubHelp home page GithubHelp logo

Comments (5)

abenhamdine avatar abenhamdine commented on May 14, 2024

Perhaps it would be preferable to see if there's still a performance gap after fastify/fastify#192 has been merged

from benchmarks.

delvedor avatar delvedor commented on May 14, 2024

It is all written in the docs :)

from benchmarks.

abenhamdine avatar abenhamdine commented on May 14, 2024

It is all written in the docs :)

Yes you're right, but not so easy to find for a newcomer 😉
People often only read tl;dr or article on Medium, and don't go further.

from benchmarks.

cagataycali avatar cagataycali commented on May 14, 2024

Is issue has any purpose or advice, how we can improve this situation?

from benchmarks.

abenhamdine avatar abenhamdine commented on May 14, 2024

I just have run my simple benchmark with fastify last release 0.27 (https://github.com/abenhamdine/frameworks-benchmark) and there's still a significant performance difference (roughly 15%) with or without schema validation :

$ npm run test-perf-fastify

> [email protected] test-perf-fastify C:\node-projects\frameworks-benchmark
> autocannon -c 100 -d 5 localhost:3000/big && autocannon -c 100 -d 5 localhost:3000/bigschema 

Running 5s test @ http://localhost:3000/big
100 connections

Stat         Avg    Stdev   Max
Latency (ms) 194.49 13.32   238
Req/Sec      507.8  26.2    533
Bytes/Sec    86 MB  4.59 MB 92.3 MB

3k requests in 5s, 434 MB read

Running 5s test @ http://localhost:3000/bigschema
100 connections

Stat         Avg     Stdev   Max
Latency (ms) 171.4   10.6    215
Req/Sec      580.21  39.6    600
Bytes/Sec    70.7 MB 5.45 MB 75.5 MB

3k requests in 5s, 345 MB read

So I still think it would be mentioned somewhere or someone could be disappointed with performance on big responses without enabling schema validation.

from benchmarks.

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.