Skip to content

Add LargeExcelFileBenchmarkXSSFReaderLoad method#1701

Merged
tonyqus merged 1 commit into
nissl-lab:masterfrom
tonyqus:xssfreaderbenchmark
Feb 28, 2026
Merged

Add LargeExcelFileBenchmarkXSSFReaderLoad method#1701
tonyqus merged 1 commit into
nissl-lab:masterfrom
tonyqus:xssfreaderbenchmark

Conversation

@tonyqus
Copy link
Copy Markdown
Member

@tonyqus tonyqus commented Feb 28, 2026

  • Implement IDisposable for OPCPackage
  • Add XSSFReaderLoad method and rename the original Load method to XSSFWorkbookLoad
  • Put test-performance.xlsx in the project, in case the file is removed from the 3rd-party Github repo

Benchmark Result

BenchmarkDotNet v0.13.12, Windows 11 (10.0.26200.7922)
11th Gen Intel Core i7-1165G7 2.80GHz, 1 CPU, 8 logical and 4 physical cores
.NET SDK 10.0.103
[Host] : .NET 8.0.24 (8.0.2426.7010), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI [AttachedDebugger]
ShortRun : .NET 8.0.24 (8.0.2426.7010), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI

Job=ShortRun IterationCount=3 LaunchCount=1
WarmupCount=3

Method Mean Error StdDev Gen0 Gen1 Gen2 Allocated
XSSFWorkbookLoad 21,188.225 ms 77,693.281 ms 4,258.6309 ms 486000.0000 230000.0000 4000.0000 2957.97 MB
XSSFReaderLoad 2.041 ms 1.588 ms 0.0870 ms 191.4063 46.8750 - 1.17 MB
Write 4,563.774 ms 1,192.734 ms 65.3778 ms 20000.0000 - - 632.93 MB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant