/** * 2.6631093025208E-5/operation */ public function testHashMix() { // echo PHP_EOL; $str = 'Robert Allen'; $start = microtime(true); for ($i = 0; $i < $this->_cycles; $i++) { $value = $this->hashmix->hash($str, $i); if ($value < 1) { echo $i, '::', $value, PHP_EOL; } } $end = microtime(true); $result = ($end - $start) / $this->_cycles . PHP_EOL; }
/** * 2.6631093025208E-5/operation */ public function testHashMix() { $this->markTestSkipped(); $this->object = new \Bloom\Hash\Murmur(); echo PHP_EOL; $str = 'Robert Allen'; $start = microtime(true); for ($i = 0; $i < $this->_cycles; $i++) { $value = $this->object->hash($str, $i); if ($value < 1) { echo $i, '::', $value, PHP_EOL; } } $end = microtime(true); echo ($end - $start) / $this->_cycles, PHP_EOL; }