Skip to content

Conversation

@Kibnet
Copy link
Owner

@Kibnet Kibnet commented May 27, 2025

This commit introduces a new benchmark project (IntSet.Benchmarks) to compare the performance and memory allocation of Kibnet.IntSet against System.Collections.Generic.HashSet<int> for common set operations.

The following operations are benchmarked:

  • Add
  • Remove
  • Contains
  • UnionWith
  • IntersectWith
  • ExceptWith
  • SymmetricExceptWith

Benchmarks are parameterized for different set sizes (0, 100, 10k, 1M elements) and data distributions (Dense, Sparse).

The BenchmarkDotNet library is used to run the benchmarks and generate reports. Instructions on how to run the benchmarks and locate the results have been added to the README.md file.

This commit introduces a new benchmark project (`IntSet.Benchmarks`) to compare the performance and memory allocation of `Kibnet.IntSet` against `System.Collections.Generic.HashSet<int>` for common set operations.

The following operations are benchmarked:
- Add
- Remove
- Contains
- UnionWith
- IntersectWith
- ExceptWith
- SymmetricExceptWith

Benchmarks are parameterized for different set sizes (0, 100, 10k, 1M elements) and data distributions (Dense, Sparse).

The `BenchmarkDotNet` library is used to run the benchmarks and generate reports. Instructions on how to run the benchmarks and locate the results have been added to the `README.md` file.
@Kibnet Kibnet merged commit ea76af7 into master May 27, 2025
2 checks passed
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.

2 participants