<?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>Performance on Marouane LAARIF scribbles</title>
    <link>https://blog.laarif-marouane.com/tags/performance/</link>
    <description>Recent content in Performance on Marouane LAARIF scribbles</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <managingEditor>marouane.laarif94@gmail.com (LAARIF Marouane)</managingEditor>
    <webMaster>marouane.laarif94@gmail.com (LAARIF Marouane)</webMaster>
    <lastBuildDate>Tue, 21 Oct 2025 23:03:01 +0100</lastBuildDate>
    <atom:link href="https://blog.laarif-marouane.com/tags/performance/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>JMH perfasm on Windows</title>
      <link>https://blog.laarif-marouane.com/posts/jmh-perf-windows/</link>
      <pubDate>Tue, 21 Oct 2025 23:03:01 +0100</pubDate><author>marouane.laarif94@gmail.com (LAARIF Marouane)</author>
      <guid>https://blog.laarif-marouane.com/posts/jmh-perf-windows/</guid>
      <description>&lt;p&gt;When running JMH benchmarks, you&amp;rsquo;ll usually see the profile &lt;code&gt;perfasm&lt;/code&gt;. If you&amp;rsquo;re on Windows, trying to run JMH with that profile fails, as it uses &lt;code&gt;perf&lt;/code&gt;, which is a Linux tool, therefore on Windows we use &lt;code&gt;-xperasm&lt;/code&gt; instead, which relies on &lt;code&gt;xperf&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;To have xperf we need to install the &lt;strong&gt;Windows Performance Toolkit (WPT)&lt;/strong&gt;, which contains &lt;code&gt;Xperf.exe&lt;/code&gt;.&#xA;The WPT is distributed as part of the &lt;strong&gt;Windows Assessment and Deployment Kit (ADK)&lt;/strong&gt; or sometimes separately. And can be found here: &lt;a href=&#34;https://learn.microsoft.com/en-us/windows-hardware/get-started/adk-install&#34;&gt;https://learn.microsoft.com/en-us/windows-hardware/get-started/adk-install&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>When running JMH benchmarks, you&rsquo;ll usually see the profile <code>perfasm</code>. If you&rsquo;re on Windows, trying to run JMH with that profile fails, as it uses <code>perf</code>, which is a Linux tool, therefore on Windows we use <code>-xperasm</code> instead, which relies on <code>xperf</code>.</p>
<p>To have xperf we need to install the <strong>Windows Performance Toolkit (WPT)</strong>, which contains <code>Xperf.exe</code>.
The WPT is distributed as part of the <strong>Windows Assessment and Deployment Kit (ADK)</strong> or sometimes separately. And can be found here: <a href="https://learn.microsoft.com/en-us/windows-hardware/get-started/adk-install">https://learn.microsoft.com/en-us/windows-hardware/get-started/adk-install</a></p>
<p>After the installation, you can then run the benchmarks as administrator.</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
