mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-17 15:12:32 +00:00
:octocat: added QRStringText to output benchmark
This commit is contained in:
@@ -14,7 +14,8 @@ namespace chillerlan\QRCodeBenchmark;
|
||||
use chillerlan\QRCode\Common\Mode;
|
||||
use chillerlan\QRCode\Data\Byte;
|
||||
use chillerlan\QRCode\Output\{
|
||||
QREps, QRFpdf, QRGdImageJPEG, QRGdImagePNG, QRGdImageWEBP, QRImagick, QRMarkupSVG, QRMarkupXML, QRStringJSON
|
||||
QREps, QRFpdf, QRGdImageJPEG, QRGdImagePNG, QRGdImageWEBP,
|
||||
QRImagick, QRMarkupSVG, QRMarkupXML, QRStringJSON, QRStringText
|
||||
};
|
||||
use PhpBench\Attributes\{BeforeMethods, Subject};
|
||||
|
||||
@@ -93,4 +94,9 @@ final class OutputBenchmark extends BenchmarkAbstract{
|
||||
new QRStringJSON($this->options, $this->matrix)->dump();
|
||||
}
|
||||
|
||||
#[Subject]
|
||||
public function QRStringText():void{
|
||||
new QRStringText($this->options, $this->matrix)->dump();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user