Benchmarking Parts of the Application
Explore how to write and run benchmarks in Deno to measure performance of application functions like generateSalt and hashWithSalt. Learn to use Deno's standard library utilities to create precise benchmarks that help monitor and improve your application's efficiency over time.
We'll cover the following...
Now, we’ll have a sneak peek at one feature that might be further down the path of our applications. One day, we’ll start having parts of the application that seem to be getting slow and we want to track their performance, and that’s where performance tests are useful. Because of this, we’ll be introducing benchmarks.
Benchmark the Deno application
When it comes to writing benchmarks in JavaScript, the language itself provides a few functions, all of which are included in the High Resolution Time API.
Because Deno is fully ES6 compatible, these same features are available. If ...