Crystal is a general-purpose, object-orientedprogramming language. With syntax inspired byRuby,it’s a compiled language with static type-checking. Types are resolved by an advanced type inference algorithm. Language specification # A very basic HTTP server require "http/server" server = HTTP::Server.new do |context| context.response.content_type = "text/plain" context.response.print "Hello worl
2014/12/16 15:14 追記 ======== なんかはてブされていたので、現在の手元のRubyで検証してみた。 $ruby -vruby 2.1.4p265 (2014-10-27 revision 48166) [x86_64-darwin14.0] $ruby bench.rb code : while = 0.05[sec] code : times = 0.08[sec] code : for = 0.08[sec] code : each = 0.09[sec] code : loop = 0.11[sec]まあloopが一番遅いのは変わらないですね。 ↓の結果は2012年のものです。ご注意ください。 ======== さっそく結果 # 速い順 code : while = 0.17[sec] code : times = 0.23[sec] code : ea
1リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く