<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Harness on Micha Kops&#39; Tech Notes</title>
    <link>https://www.hascode.com/tags/harness/</link>
    <description>Recent content in Harness on Micha Kops&#39; Tech Notes</description>
    <generator>Hugo -- 0.147.8</generator>
    <language>en</language>
    <copyright>Copyright © 2010 - 2025 Micha Kops. #213243b1d6e8932079e09227d3f3ed0c806cd0c9</copyright>
    <lastBuildDate>Mon, 02 Oct 2017 00:00:00 +0200</lastBuildDate>
    <atom:link href="https://www.hascode.com/tags/harness/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Microbenchmarks with JMH / Java Microbenchmark Harness</title>
      <link>https://www.hascode.com/microbenchmarks-with-jmh-/-java-microbenchmark-harness/</link>
      <pubDate>Mon, 02 Oct 2017 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/microbenchmarks-with-jmh-/-java-microbenchmark-harness/</guid>
      <description>&lt;div id=&#34;preamble&#34;&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Writing microbenchmarks for parts of our applications is not always easy – especially when the internals of the virtual machine, the just-in-time-compiler and such things are coming into effect.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Java Microbenchmark Harness is a tool that takes care of creating JVM warmup-cycles, handling benchmark-input-parameters and running benchmarks as isolated processes etc.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Now following a few short examples for writing microbenchmarks with JMH.&lt;br/&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;imageblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;img src=&#34;java-jmh-microbenchmark-in-intellij.png&#34; alt=&#34;java jmh microbenchmark in intellij&#34;/&gt;
&lt;/div&gt;
&lt;div class=&#34;title&#34;&gt;Figure 1. Java JMH Microbenchmarks running in IntelliJ&lt;/div&gt;</description>
    </item>
  </channel>
</rss>
