DEV Community

Deepal Jayasekara
Deepal Jayasekara

Posted on • Originally published at blog.insiderattack.net on

How Not To Measure Time in Programming

a.k.a. how the likes of Date.now() will ruin your metrics.

If you fly between two airports that are in two different time zones, would you calculate the time it took for you to fly, by checking the difference between the ‘wall clock’ times of either airport?

If your answer is ‘no’, then let me explain why you shouldn’t do the same in your code, using a little but a very interesting experiment.

Continue reading on Deepal’s Blog »

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs