Skip to content

cellajs/hono-elysia-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Type Stress benchmark

Measure how long TypeScript took to process each file for each web framework.

Prerequisted:

  • TypeScript CLI (tsc)
  • Bun
  1. Install dependencies:
bun install
  1. Generate necessary file:
bun prepare
  1. Measure how type inference (expected: 5-6 seconds)
bun trace

If trace command is successfully executed without interruption, you will see a new folder name trace is created with the following files:

  • trace.json
  • types.json

Head to perfetto, drag and drop trace.json into the page.

Once dropped, you should be able to visualize how long each file take to process.

Click on each slide, should revealed how long it took and the file path.

If you are not familiar with perfetto, please see Type Performance tracing

  1. Additionally, you may use dev commands to interspect documentation for each framework by using the following commands:
  • bun dev:hono - to serve Hono server
  • bun dev:elysia - to server Elysia server

Once server is started, head to http://localhost:3000/swagger

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published