#performance engineering
6 posts

Want to debug latency?

Latency is a critical measure to determine whether our systems are running normally or not. There are many collections libraries available that help you collect latency metrics.
Read more

Want to debug latency?

  • Latency is a critical measure to determine whether our systems are running normally or not.
  • There are many collections libraries available that help you collect latency metrics.
  • Heat maps are useful as they help visualize latency distribution over time.
  • After narrowing down the source of the latency to a service or process, look at the host-specific and in-process reasons why latency occurred in the first place.
  • If the host is behaving normally and networking is not impacted, go and further analyze the in-process sources of latency.
  • Some language runtimes like Go allows us to internally trace runtime events in the lifetime of a request.

Full post here, 6 mins read

Four load testing mistakes developers love to make

Being too focused on what you set out to test and ignoring any other warning signs while testing is a common mistake developers make. Reusing test data is another common mistake.
Read more

Four load testing mistakes developers love to make

  • If you run a short load test and it works fine, it is no guarantee that your service can handle that load for a long time. You should run your performance tests for more time and understand your system’s performance characteristics.
  • Being too focused on what you set out to test and ignoring any other warning signs while testing is a common mistake developers make. It’s good to pay attention and investigate unusual results or changes in your application’s behaviour as you increase load.
  • Reusing test data is another common mistake. You should either generate new data or spin up a new environment for each test.
  • Assuming the production environment is perfectly healthy permanently. Deliberately make things to go wrong during your load test to find out how your service will perform if such failures happen.

Full post here, 7 mins read

Back-end performance, those metrics we should care about

There is a strong correlation between throughput and latency in a performance test. Latency increases with the growth of throughput.
Read more

Back-end performance, those metrics we should care about

  • The latency requirement should correspond to the specific service type.
  • There is a strong correlation between throughput and latency in a performance test. Latency increases with the growth of throughput.
  • Normally network issues like congestion-caused errors should not exceed 5% of the total requests, and application-caused errors should not exceed 1%.
  • As the CPU determines a server’s performance, a high sy means the server switches between user mode and kernel mode too often, which is bad for overall performance.
  • Frequent reading or writing the disk could cause long latency and low throughput.

Full post here, 10 mins read

Performance metrics for blazingly fast web apps

Measure time starting at event.timeStamp. Measure time ending at performance.now() in a requestAnimationFrame(). performance.now() is precise to ±100 microseconds.
Read more

Performance metrics for blazingly fast web apps

  • Measure time starting at event.timeStamp.
  • Measure time ending at performance.now() in a requestAnimationFrame(). performance.now() is precise to ±100 microseconds.
  • Ensure your app is in the foreground because if your user switches to another browser tab, your metrics will break. Use document.hidden and visibilitychange event. While the tab is in the background, document.hidden is true.
  • Find the best event start time. For a current event, use window.event.timeStamp to record the time the system logged the event.

Full post here, 8 mins read

The Importance of Web Performance Benchmarking

KPIs to focus on: Page load time, Application availability, Webpage size & content, Third-party services performance and User engagement
Read more

The Importance of Web Performance Benchmarking

Focus on the following web performance benchmarking KPIs for your online applications:

  • Page load time
  • Application availability
  • Webpage size & content
  • Third-party services performance
  • User engagement &/or transactions

Full post here, 5 mins read