mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-15 15:53:32 +00:00
Initial timing tests. 7.4.2 is the benchmark 7.4.2 vs newer versions processing time #1299
This commit is contained in:
11
__tests__/ImportExcelTests/ImportExcelTiming.tests.ps1
Normal file
11
__tests__/ImportExcelTests/ImportExcelTiming.tests.ps1
Normal file
@@ -0,0 +1,11 @@
|
||||
Import-Module $PSScriptRoot\..\..\ImportExcel.psd1 -Force
|
||||
|
||||
Describe "Tests Import-Excel Timings" -Tag Timing {
|
||||
It "Should read the 20k xlsx in -le 2100 milliseconds" {
|
||||
$timer = Measure-Command {
|
||||
$null = Import-Excel $PSScriptRoot\Rows20k.xlsx
|
||||
}
|
||||
|
||||
$timer.TotalMilliseconds | Should -BeLessOrEqual 2100
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user