Skip to content

Instantly share code, notes, and snippets.

@maeharin
Last active December 11, 2015 05:48
Show Gist options
  • Save maeharin/4554356 to your computer and use it in GitHub Desktop.
Save maeharin/4554356 to your computer and use it in GitHub Desktop.
<?php
$t = microtime(ture);
for($i = 0; $i < 1000000; $i++) {(string)$i;}
echo microtime(ture) - $t;
require 'benchmark'; Benchmark.measure {1000000.times(&:to_s)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment