Skip to content

Commit

Permalink
add fastify in benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwalguptaofficial committed Nov 26, 2023
1 parent e2e4158 commit 5402389
Show file tree
Hide file tree
Showing 7 changed files with 654 additions and 2 deletions.
1 change: 1 addition & 0 deletions benchmarks/fastify/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
16 changes: 16 additions & 0 deletions benchmarks/fastify/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Require the framework and instantiate it
const fastify = require('fastify')()

// Declare a route
fastify.get('/', function handler(request, reply) {
reply.send("Hello World!")
})

// Run the server!
fastify.listen({ port: 3001 }, (err) => {
if (err) {
fastify.log.error(err)
process.exit(1)
}
console.log('Example app listening on port 3001!');
})
Loading

0 comments on commit 5402389

Please sign in to comment.