mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-08 17:16:25 +00:00
22 lines
510 B
PHP
22 lines
510 B
PHP
<?php
|
|
|
|
namespace PhpOffice\PhpSpreadsheetPerformance\Writer\Xls;
|
|
|
|
use PhpOffice\PhpSpreadsheet\Writer\Xls;
|
|
use PhpOffice\PhpSpreadsheetPerformance\Writer\AbstractBasicWriter;
|
|
|
|
class XlsWriterBenchmark extends AbstractBasicWriter
|
|
{
|
|
/**
|
|
* @revs(5)
|
|
* @Iterations(5)
|
|
* @OutputTimeUnit("milliseconds")
|
|
* @AfterMethods("tearDown")
|
|
*/
|
|
public function benchmarkBasicXlsWriter(): void
|
|
{
|
|
$writer = new Xls($this->spreadsheet);
|
|
$writer->save($this->fileName);
|
|
}
|
|
}
|