Skip to content

Conversation

@paulirwin
Copy link
Member

This adds a BenchmarkDotNet project so that we can measure improvements (or regressions) with different changes.

This also does some improvements to reduce execution time and allocations on some benchmarks:

  • Cosine: 355 -> 331ns, allocations 896 -> 816B
  • Jaccard: 524 -> 502ns, allocations 1272 -> 1264B
  • QGram: 622 -> 503ns, allocations 1272 -> 1144B
  • SorensenDice allocations 1272 -> 1144B (note: slight perf regression 510 -> 557ns)

@paulirwin paulirwin requested a review from jamesmblair June 3, 2024 00:26
@jamesmblair jamesmblair self-requested a review August 9, 2024 21:13
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.

3 participants