<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hiboma</author_name>
  <author_url>https://blog.hatena.ne.jp/hiboma/</author_url>
  <blog_title>hibomaの日記</blog_title>
  <blog_url>https://hiboma.hatenadiary.jp/</blog_url>
  <categories>
    <anon>perl</anon>
  </categories>
  <description>ベンチマークする時の留意点をあげてみます。ちょと長いけど興味ある人は読んでね。ファイルを読み込んで操作するコードについて、Perl Best Practiceでは my $code = do { local $/; } とすることで、ファイルを一気読みすることを薦めている。 これに対して下記は、バッドなやり方として書かれているものです。 my $code; while(my $line = ) $code .= $line; } スカラー文を連結するドット演算子の . （concat）を使っているので、スピードが落ちてしまうからだという。 さて試しに二つのコードをベンチマークしてみます。 #!…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiboma.hatenadiary.jp%2Fentry%2F20060527%2F1148741310&quot; title=&quot;use Benchmark ベンチマークに際しての留意点 - hibomaの日記&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>2006-05-27 23:48:30</published>
  <title>use Benchmark ベンチマークに際しての留意点</title>
  <type>rich</type>
  <url>https://hiboma.hatenadiary.jp/entry/20060527/1148741310</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
