{"width":"100%","author_name":"syou6162","categories":["Ruby"],"type":"rich","blog_url":"https://www.yasuhisay.info/","url":"https://www.yasuhisay.info/entry/20100303/1267591131","title":"pack&unpack\u306e\u51e6\u7406\u901f\u5ea6","image_url":"http://ecx.images-amazon.com/images/I/51BI+oUtJCL.jpg","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/syou6162/","blog_title":"yasuhisa's blog","provider_url":"https://hatena.blog","description":"DB\u3068\u304b\u306b\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306b\u914d\u5217(\u6570\u5024\u304c\u5165\u3063\u3066\u308b)\u3092\u30b9\u30ab\u30e9\u30fc\u306b\u5727\u7e2e\u3057\u305f\u3044\u3002\"join\u3057\u3066split\"\u3059\u308b\u306e\u3068\"pack\u3057\u3066unpack\"\u3060\u3068\u5f8c\u8005\u304c\u7d76\u5bfe\u65e9\u3044\u3088\u306a\u30fc\u3068\u304b\u601d\u3063\u305f\u3051\u3069\u3001\u3069\u308c\u304f\u3089\u3044\u65e9\u3044\u306e\u304b\u6c17\u306b\u306a\u3063\u305f\u306e\u3067\u8abf\u3079\u3066\u307f\u305f\u3002\u914d\u5217\u306f\u30e9\u30f3\u30c0\u30e0\u306b\u4f5c\u3063\u305f\u307b\u3046\u304c\u3044\u3044\u306e\u304b\u306a\u3001\u3001\u3001\u3068\u601d\u3044\u306a\u304c\u3089\u3082\u624b\u3092\u629c\u3044\u305f\u3002 require 'benchmark' require 'pp' a = [1, 3, 9, 21, 30, 51, 1000, 3000, 5000, 10000] n = 10000 Benchmark.bm do |x| x.report {n.times {a.join(', ')}} x.report\u2026","published":"2010-03-03 13:38:51","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yasuhisay.info%2Fentry%2F20100303%2F1267591131\" title=\"pack&amp;unpack\u306e\u51e6\u7406\u901f\u5ea6 - yasuhisa&#39;s blog\" 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"}