{"provider_url":"https://hatena.blog","categories":["Ruby","\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0"],"url":"https://obelisk.hatenablog.com/entry/2017/07/27/030820","published":"2017-07-27 03:08:20","description":"\u81ea\u5206\u306e\u5b9f\u88c5\u3067\u3001\u30de\u30fc\u30b8\u30bd\u30fc\u30c8\u3068\u30af\u30a4\u30c3\u30af\u30bd\u30fc\u30c8\u306e\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u3092\u3057\u3066\u307f\u307e\u3057\u305f\u3002 \u30de\u30fc\u30b8\u30bd\u30fc\u30c8\u306e\u5b9f\u88c5\u306f\u3053\u308c\u3001\u30af\u30a4\u30c3\u30af\u30bd\u30fc\u30c8\u306e\u306f\u3053\u308c\uff08\u3044\u3061\u3070\u3093\u4e0b\u306e\u5b9f\u88c5\uff09\u3067\u3059\u3002 \u30de\u30fc\u30b8\u30bd\u30fc\u30c8\u3002 \u30af\u30a4\u30c3\u30af\u30bd\u30fc\u30c8\u3002 \u57fa\u672c\u7684\u306b\u30af\u30a4\u30c3\u30af\u30bd\u30fc\u30c8\u306e\u65b9\u304c\u901f\u3044\u3088\u3046\u3067\u3042\u308b\u3002 \u30d9\u30f3\u30c1\u30de\u30fc\u30af\u3002 bench_sorts.rb require 'benchmark' 100.times do ar = (0..10_0000).to_a.shuffle Benchmark.bm 12 do |x| x.report(\"merge sort\") {ar.merge_sort} x.report(\"quick sort\") {ar.qsort} en\u2026","height":"190","title":"\u30de\u30fc\u30b8\u30bd\u30fc\u30c8\u3068\u30af\u30a4\u30c3\u30af\u30bd\u30fc\u30c8\u306e\u6bd4\u8f03\uff08Ruby\uff09","blog_url":"https://obelisk.hatenablog.com/","author_name":"obelisk2","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/obelisk2/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2017%2F07%2F27%2F030820\" title=\"\u30de\u30fc\u30b8\u30bd\u30fc\u30c8\u3068\u30af\u30a4\u30c3\u30af\u30bd\u30fc\u30c8\u306e\u6bd4\u8f03\uff08Ruby\uff09 - Camera Obscura\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","blog_title":"Camera Obscura","width":"100%","image_url":"http://img.f.hatena.ne.jp/images/fotolife/o/obelisk2/20170727/20170727025742.png","type":"rich"}