Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added BDN for all hash commands #879

Merged
merged 4 commits into from
Dec 13, 2024

Conversation

Vijay-Nirmal
Copy link
Contributor

@Vijay-Nirmal Vijay-Nirmal commented Dec 13, 2024

Added BDN for the following commands

  • HDEL
  • HEXISTS
  • HGET
  • HGETALL
  • HINCRBY
  • HINCRBYFLOAT
  • HKEYS
  • HLEN
  • HMGET
  • HMSET
  • HRANDFIELD
  • HSCAN
  • HSET
  • HSETNX
  • HSTRLEN
  • HVALS
dotnet run -c Release -f net8.0 --filter BDN.benchmark.Operations.ObjectOperations.H*

main branch results as of commit aa004d372a23731e3e5f0fa65d701c4a4d62b381

Method Params Mean Error StdDev Allocated
HSetDel ACL 71.403 us 0.7838 us 0.7332 us 16000 B
HExists ACL 6.898 us 0.0644 us 0.0571 us -
HGet ACL 5.938 us 0.0806 us 0.0754 us -
HGetAll ACL 5.215 us 0.0906 us 0.0847 us -
HIncrby ACL 7.586 us 0.1066 us 0.0997 us -
HIncrbyFloat ACL 7.942 us 0.0769 us 0.0720 us -
HKeys ACL 6.514 us 0.1299 us 0.1596 us -
HLen ACL 5.756 us 0.0913 us 0.0854 us -
HMGet ACL 6.544 us 0.1303 us 0.1694 us -
HMSet ACL 7.998 us 0.1584 us 0.1404 us -
HRandField ACL 6.787 us 0.0415 us 0.0388 us -
HScan ACL 6.289 us 0.0630 us 0.0589 us 776 B
HSetNx ACL 6.851 us 0.0389 us 0.0345 us -
HStrLen ACL 7.494 us 0.0713 us 0.0632 us -
HVals ACL 5.823 us 0.0525 us 0.0491 us -
HSetDel AOF 78.643 us 1.1582 us 1.0834 us 16000 B
HExists AOF 27.838 us 0.2605 us 0.2437 us 6400 B
HGet AOF 28.008 us 0.2615 us 0.2446 us 6400 B
HGetAll AOF 30.968 us 0.3035 us 0.2839 us 3200 B
HIncrby AOF 43.694 us 0.4504 us 0.3993 us 9600 B
HIncrbyFloat AOF 61.934 us 0.8169 us 0.7641 us 14400 B
HKeys AOF 30.483 us 0.4016 us 0.3757 us 3200 B
HLen AOF 24.903 us 0.1990 us 0.1861 us 3200 B
HMGet AOF 32.191 us 0.2342 us 0.2076 us 9600 B
HMSet AOF 43.277 us 0.3919 us 0.3666 us 16000 B
HRandField AOF 35.159 us 0.2426 us 0.2269 us 8800 B
HScan AOF 6.350 us 0.0436 us 0.0408 us 776 B
HSetNx AOF 38.265 us 0.4156 us 0.3684 us 9600 B
HStrLen AOF 28.177 us 0.2426 us 0.2150 us 6400 B
HVals AOF 29.212 us 0.1524 us 0.1426 us 3200 B
HSetDel None 68.038 us 0.6442 us 0.6026 us 16000 B
HExists None 28.753 us 0.2215 us 0.2072 us 6400 B
HGet None 26.804 us 0.1627 us 0.1521 us 6400 B
HGetAll None 31.720 us 0.2792 us 0.2475 us 3200 B
HIncrby None 37.302 us 0.3543 us 0.3314 us 9600 B
HIncrbyFloat None 57.083 us 0.5250 us 0.4910 us 14400 B
HKeys None 29.819 us 0.2232 us 0.1978 us 3200 B
HLen None 24.448 us 0.2692 us 0.2518 us 3200 B
HMGet None 31.395 us 0.3747 us 0.3505 us 9600 B
HMSet None 38.002 us 0.3554 us 0.3324 us 16000 B
HRandField None 35.847 us 0.2908 us 0.2720 us 8800 B
HScan None 6.302 us 0.0562 us 0.0526 us 776 B
HSetNx None 32.562 us 0.3962 us 0.3706 us 9600 B
HStrLen None 27.899 us 0.2199 us 0.1949 us 6400 B
HVals None 28.536 us 0.1803 us 0.1598 us 3200 B

@badrishc
Copy link
Contributor

badrishc commented Dec 13, 2024

Amazing, it is great to have a performance bar for so many hash operations. In perhaps a separate PR, we do need something like this to cover SortedSet as well since those are heavily used as well.

@badrishc badrishc merged commit 3f679b0 into microsoft:main Dec 13, 2024
15 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