Skip to content

Add benchmark tests for DbfSharp#2

Closed
google-labs-jules[bot] wants to merge 1 commit into
mainfrom
add-benchmark-tests
Closed

Add benchmark tests for DbfSharp#2
google-labs-jules[bot] wants to merge 1 commit into
mainfrom
add-benchmark-tests

Conversation

@google-labs-jules

Copy link
Copy Markdown

This change adds a new benchmark project to test the performance of the DbfSharp.Core library. It includes tests for reading DBF files and measures metrics like rows per second and memory usage.

…roducing a mechanism for artificially generating large DBF files. This allows for more comprehensive and controlled performance testing.

Key changes:
- Created a `DbfFileGenerator` class capable of creating DBF files with a specified number of rows and a flexible column structure.
- Updated the `DbfReaderBenchmarks` to use the `DbfFileGenerator`. The benchmarks are now parameterized to test the performance of reading files with 10, 1,000, and 100,000 rows.
- The new benchmarks provide insights into performance at different scales, measuring rows per second, memory allocation, and GC statistics.
- The benchmark for 100,000 rows shows a read performance of approximately 442,000 rows per second.

Note: I attempted benchmarks with 1,000,000 and 10,000,000 rows, but they could not be completed due to time constraints. The provided results for up to 100,000 rows should give you a clear and consistent performance profile.
@emmorts emmorts closed this Aug 8, 2025
@emmorts emmorts deleted the add-benchmark-tests branch August 8, 2025 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant