<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Sixeight</author_name>
  <author_url>https://blog.hatena.ne.jp/Sixeight/</author_url>
  <blog_title>ちなみに</blog_title>
  <blog_url>https://blog.nishimu.land/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>require 'benchmark' module Enumerable def amap map {|e| Thread.new { yield e } }.map(&amp;:value) end end ary = [1, 2, 3, 4, 5] res = {} Benchmark.bm(4) do |x| x.report('map') { res[:map] = ary.map {|e| sleep 1; e } } x.report('amap') { res[:amap] = ary.amap {|e| sleep 1; e } } end p [:map, res[:map]] p…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.nishimu.land%2Fentry%2F20081218%2F1229563863&quot; title=&quot;非同期ブームに乗って非同期mapを考えてみた - ちなみに&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>2008-12-18 10:31:03</published>
  <title>非同期ブームに乗って非同期mapを考えてみた</title>
  <type>rich</type>
  <url>https://blog.nishimu.land/entry/20081218/1229563863</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
