Skip to content

Commit

Permalink
Switch bench script back to using futuretick/coop.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalloc committed Feb 5, 2014
1 parent 3f3e019 commit b26b6d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions benchmark/loop-benchmark
Expand Up @@ -2,7 +2,7 @@
<?php
require dirname(__DIR__) . '/vendor/autoload.php';

define('ITERATIONS', 5000);
define('ITERATIONS', 50000);

use React\EventLoop\Factory;
use Recoil\Recoil;
Expand Down Expand Up @@ -32,7 +32,7 @@ if (!ini_get('xdebug.profiler_enable')) {
$go = null;
$go = function () use ($loop, &$remaining, &$go) {
if ($remaining--) {
$loop->nextTick($go);
$loop->futureTick($go);
}
};

Expand All @@ -49,7 +49,7 @@ runBenchmark(
Recoil::run(
function () {
for ($i = 0; $i < ITERATIONS; ++$i) {
yield Recoil::noop();
yield;
}
}
);
Expand Down

0 comments on commit b26b6d4

Please sign in to comment.