for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Np\benchmarks\matrix\arithmetic;
use Np\matrix;
/**
* @Groups({"Arithmetic"})
* @BeforeMethods({"setUp"})
*/
class sumMatrixBench
{
* @var \Np\matrix
protected $a,$b;
public function setUp() : void {
$this->a = matrix::uniform(500, 500);
$this->b = matrix::uniform(500, 500);
}
* @Subject
* @Iterations(5)
* @revs(5)
* @OutputTimeUnit("seconds", precision=3)
public function sum() : void
$this->a->sum($this->b);