<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ledsun</author_name>
  <author_url>https://blog.hatena.ne.jp/ledsun/</author_url>
  <blog_title>@ledsun blog</blog_title>
  <blog_url>https://ledsun.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>技</anon>
  </categories>
  <description>いろいろなRubyでπを計算して速さを比べる - @ledsun blog で比較したところTruffle RubyよりCRubyの方がずっと速かったです。 なぜでしょうか？ 例えば Ruby 3.0のJITの特性 - @ledsun blog でCRuby 3.0 の MJIT を試した時は実行時間が20秒を超えたあたりから MJIT での高速化が明確に効き始めました。 次のスクリプトを作って試してみました。 スクリプト require &quot;bigdecimal&quot; require &quot;benchmark&quot; def pi prec = 100 conv = 3 a = BigDecimal(&quot;1&quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fledsun.hatenablog.com%2Fentry%2F2022%2F09%2F07%2F060411&quot; title=&quot;JITが効くまでに時間が掛かるのではないか？ - @ledsun blog&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>https://cdn-ak.f.st-hatena.com/images/fotolife/l/ledsun/20220907/20220907060107.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-09-07 06:04:11</published>
  <title>JITが効くまでに時間が掛かるのではないか？</title>
  <type>rich</type>
  <url>https://ledsun.hatenablog.com/entry/2022/09/07/060411</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
