Skip to content

jcrapuchettes/Fastify-Bun-Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fastify OpenAPIGlue Benchmark

This project benchmarks Fastify with OpenAPIGlue, comparing performance between Node.js and Bun runtimes.

Setup

  1. Install dependencies:

    npm install
    
  2. Install Bun (if not already installed):

    curl -fsSL https://bun.sh/install | bash
    

Running Benchmarks

  1. Run the Node.js benchmark:

    npm run benchmark:node
    
  2. Run the Bun benchmark:

    npm run benchmark:bun
    
  3. Compare results:

    npm run compare
    

Manual Testing

You can also start the server manually:

  • With Node.js:

    npm run start:node
    
  • With Bun:

    npm run start:bun
    

The server will be available at http://localhost:3000 with the following endpoints:

  • GET /api/simple
  • GET /api/echo/{param}
  • POST /api/complex

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published