<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inamori</author_name>
  <author_url>https://blog.hatena.ne.jp/inamori/</author_url>
  <blog_title>inamori’s diary</blog_title>
  <blog_url>https://inamori.hateblo.jp/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>substringはcharAtと同じ結果を出す場合、 2%ほど遅くなるようである。 また、違う位置の文字列を取り出してもほぼ同じ時間がかかる。 大きな文字列を取り出す場合は、やはり違ってくる。 文字列の結合のときと同じように、 http://d.hatena.ne.jp/inamori/20061208/p1 長さ100万の文字列を用意して、 最初から長さnの文字列の切り出しを2億/n回繰り返す。 この実行時間の10回平均を出す。切り出す文字列が長くなると、 だいたい文字列の結合と同じ時間かかる。 結果として生成される長さに比例する。 このメソッドにかかる時間のほとんどが文字列の生成と思われ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20061214%2Fp1&quot; title=&quot;JScriptのメソッドの速度/substring - inamori’s diary&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/i/inamori/20061214/20061214215658.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2006-12-14 00:00:00</published>
  <title>JScriptのメソッドの速度/substring</title>
  <type>rich</type>
  <url>https://inamori.hateblo.jp/entry/20061214/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
