Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
defintion translation speed test
$iterations = 10000;
for ($i = 0; $i < $iterations; $i++) {
$d = serialize($definitions);
$e = unserialize($d);
echo timer_read('test')."ms for $iterations runs. \n";
echo (timer_read('test') / $iterations) ."ms per run";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment