Home » Tag Archives: Benchmarking

Tag Archives: Benchmarking

JLBH Examples 3 – The Affects of Throughput on Latency

In this post: A discussion about the effects of thoughput on latency How use JLBH to measure TCP loopback Adding probes to test both halves of the TCP round trip Watching the effect of increasing throughput on latency Understanding that you have to drop throughput to achieve good latencies at high percentiles. In the post we saw the effects of accounting ...

Read More »

JLBH Examples 2 – Accounting for Coordinated Omission

In this post: Running JLBH with and without accounting for coordinated omission An example to in numbers the effects of coordinated omission A discussion about flow control             This is the example I used when describing what it would be like if you measured without accounting for coordinated omission: Let’s imagine you are waiting for ...

Read More »

JLBH Examples 1 – Why Code Should be Benchmarked in Context

In this post: A side by side example using JMH and JLBH for Date serialisation Measuring Date serialisation in a microbenchmark Measuring Date serialisation as part of a proper application How to add a probe to your JLBH benchmark Understanding the importance of measuring code in context       In the last post, ‘Introducing JLBH‘ we introduced JLBH the latency ...

Read More »

JLBH – Introducing Java Latency Benchmarking Harness

In this Post: What is JLBH Why did we write JLBH Differences between JMH and JLBH Quick start guide       What is JLBH? JLBH is a tool that can be used to measure latency in Java programs. It has these features: Aimed at running code that would be larger than a micro benchmark. Suitable for programs that use ...

Read More »

Coarse-grained benchmarking

While developing our software, we are all about metrics – even to the fact where I am pretty sure at least 10% of our posts contain a phrase “measure don’t guess”. One of those metrics we keep a close watch for is performance. Or to be more precise – the amount of extra CPU cycles we burn or the extra ...

Read More »

Java Micro-Benchmarking: How to write correct benchmarks

Several months ago, I wrote an article to compare the performances of short indexes for loops. I asked myself of the performances using shorts as loop indexes for loop with few iterations. In Java language, all the operations on integers are made in int. Thus, if we use a short as loop index, at each iterations, a typecasting will be ...

Read More »

Performance Anxiety – on Performance Unpredictability, Its Measurement and Benchmarking

Joshua Bloch had a great talk called Performance Anxiety (30min, via Parleys slides also available ) at Devoxx 2010, the main message as I read it was Nowadays, performance is completely non-predictable. You have to measure it and employ proper statistics to get some meaningful results. Microbenchmarking is very, very hard to do correctly. No, you misunderstand me, I mean ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns