Measure Render Performance
You can measure the render performance of your components with Polaris. Let's look at an example.
TypeScript
const instrument = measure('grid-sort');
function async onSort() {
// measure render time
try {
instrument.start();
await sort();
requestAnimationFrame(() => instrument.done());
} catch (error) {
instrument.fail(error);
}
}