Skip to content

Commit 60072b2

Browse files
stloydnorberttech
andauthored
Add a benchmark for Excel Extractor with an ODS file (#1663)
Co-authored-by: Norbert Orzechowicz <1921950+norberttech@users.noreply.github.com>
1 parent 6cafc1c commit 60072b2

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/adapter/etl-adapter-excel/tests/Flow/ETL/Adapter/Excel/Tests/Benchmark/ExcelExtractorBench.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@ public function __construct()
1919
$this->context = flow_context(config());
2020
}
2121

22-
public function bench_extract_10k() : void
22+
public function bench_extract_10k_ods() : void
23+
{
24+
iterator_to_array(
25+
from_excel(__DIR__ . '/../Fixtures/orders_flow.ods')->extract($this->context)
26+
);
27+
}
28+
29+
public function bench_extract_10k_xlsx() : void
2330
{
2431
iterator_to_array(
2532
from_excel(__DIR__ . '/../Fixtures/orders_flow.xlsx')->extract($this->context)
Binary file not shown.

0 commit comments

Comments
 (0)