What can be measured?
CodSpeed can measure the performance of different types of code, thanks to its instruments:- The core of CodSpeed is the CPU instrument. Use it measure the performance of algorithms, data processing steps, mathematical operations, and basically any kind CPU-bound tasks. Extensive data is collected during the execution of the code, which is used to create consistent performance measurement and detailed flame-graphs of the code.
- The Walltime instrument measures the real time taken by your code to execute. It is useful to measure end-to-end performance of your code, including system calls, I/O operations, network requests, and database queries. It leverages CodSpeed’s Macro Runners to provide a stable and isolated environment for running your benchmarks with low noise and high precision.
- The Databases instrument measure the performance of database queries. They allow you to track and compare the performance of your database queries during development.
How does it work?
