Benchmark is a personal project to help understand more about the internals of SSR (server-side rendering). It is heavily inspired by clockwork and my goal is to create something similar for SSR JS apps. To start, benchmark will be built to work with SSR React apps build using vite, but this will probably be expanded in the future. Ideally benchmark would be able to be brought into any SSR JS app independent of framework and tooling.
Benchwark is designed to show insights about your node application. The inspiration for the project comes from the laravel package clockwork.
Initially benchmark will be built to live on the server, either as middleware or completly independent. It will be used to provide insight into the SSR process. Initial functionality that I will be working on:
-
Component render time - How long does it take the server to render the server component and the size of the rendered component -
Network calls - Understand http/s calls being made from your node application
-
Future ideas...
If others find this concept interesting and want to contribute I would be happy to collaborate! 🎉
- bootstrap project
- initialize benchmark client
- add tests for benchmark client
- throw error if client is initialized not in the main thread