1<?php
2
3namespace Tensor\Benchmarks\Structural;
4
5use Tensor\Matrix;
6
7/**
8 * @Groups({"Structural"})
9 * @BeforeMethods({"setUp"})
10 */
11class InsertMatrixBench
12{
13    /**
14     * @var \Tensor\Matrix
15     */
16    protected $a;
17
18    /**
19     * @var \Tensor\Matrix
20     */
21    protected $b;
22
23    public function setUp() : void
24    {
25        $this->a = Matrix::uniform(500, 500);
26
27        $this->b = Matrix::uniform(100, 100);
28    }
29
30    /**
31     * @Subject
32     * @Iterations(5)
33     * @OutputTimeUnit("seconds", precision=3)
34     */
35    public function insert() : void
36    {
37        $this->a->insert($this->b, 50, 100);
38    }
39}
40