mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-07 00:31:57 +00:00
28 lines
622 B
PHP
28 lines
622 B
PHP
<?php
|
|
|
|
namespace PhpOffice\PhpSpreadsheetPerformance\Writer\Xls;
|
|
|
|
use PhpOffice\PhpSpreadsheet\Writer\Xls;
|
|
use PhpOffice\PhpSpreadsheetPerformance\Writer\AbstractBasicWriter;
|
|
|
|
class XlsWriterLargeBenchmark extends AbstractBasicWriter
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct(128, 8192);
|
|
}
|
|
|
|
/**
|
|
* @Groups({"slow"})
|
|
* @revs(3)
|
|
* @Iterations(5)
|
|
* @OutputTimeUnit("seconds")
|
|
* @AfterMethods("tearDown")
|
|
*/
|
|
public function benchmarkLargeXlsWriter(): void
|
|
{
|
|
$writer = new Xls($this->spreadsheet);
|
|
$writer->save($this->fileName);
|
|
}
|
|
}
|