Replies: 3 comments
-
Hey @Pouria7, thanks for your efforts. Could you please share the actual benchmark code? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I realized that the initial benchmarks might have been affected by the time taken to create instances of the encoders. To address this, I modified the setup to create instances only once: [GlobalSetup]
public void Setup()
{
hashids = new Hashids();
sqids = new SqidsEncoder<int>();
} Updated Benchmark ResultsAfter making these changes, here are the new benchmark results:
|
Beta Was this translation helpful? Give feedback.
-
Performance Concerns: Sqids significantly slower than HashIds in benchmarks
Hello Sqids team,
I recently conducted a performance benchmark comparing Sqids with HashIds (ullmark/hashids.net), and I wanted to share my findings with you. While I appreciate the new features and improvements Sqids brings over HashIds, I've noticed a significant performance difference that I believe is worth discussing.
Benchmark Results
Here are the results of my benchmark test:
Observations
These benchmarks were conducted using both
encode
anddecode
operations together. However, I observed similar results when testing theencode
operation alone.Questions and Concerns
I appreciate the work you've done on Sqids and I'm looking forward to hearing your thoughts on these performance issues. If you need any additional information or if you'd like me to run more specific benchmarks, please let me know.
Beta Was this translation helpful? Give feedback.
All reactions