<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cipepser</author_name>
  <author_url>https://blog.hatena.ne.jp/cipepser/</author_url>
  <blog_title>逆さまにした</blog_title>
  <blog_url>https://cipepser.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>ベンチマークを測定していると要素数を増やしたり、負荷を上げたりしながら性能がどのように変わるか調べたいときがあります。 変数をべた書きしたベンチマークをコピペして書くことも可能ですが、以下のような方法できれいに書くことができます。 ここでは関数doSomething()のベンチマークを取りたいとします。 package multibench func doSomething(n int) {} 以下のようにテストファイルの中に、要素数nを引数とする関数を、補助的に用意することで目的が達成できます。ここでbenchmarkDoSomething()はpackage内でのみ参照できればいいので、小…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcipepser.hatenablog.com%2Fentry%2F2017%2F06%2F10%2F090433&quot; title=&quot;Golangで数を増やしながらベンチマーク - 逆さまにした&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-06-10 09:04:33</published>
  <title>Golangで数を増やしながらベンチマーク</title>
  <type>rich</type>
  <url>https://cipepser.hatenablog.com/entry/2017/06/10/090433</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
