Benchmarking tools

On one end of the performance testing spectrum, there's user-perceived performance. This is where one of our customers is complaining about laggyness, and sure enough, it's easy for us to replicate the problem. This could be an issue with view components, network requests, or something in our store that's causing the suboptimal user experience. On the other end of the spectrum, we have raw benchmarking of code, where we want accurate timings to ensure that we're using the most efficient implementation.

In this section, we'll briefly introduce the concept of benchmarking, and then we'll show an example that uses Benchmark.js to compare two state transformation implementations.

Benchmarking code

When we benchmark our code, we're ...

Get Flux Architecture now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.