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

Benchmark for C++ PDQ index #1699

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

16BitNarwhal
Copy link
Contributor

@16BitNarwhal 16BitNarwhal commented Nov 28, 2024

Summary

Resolve #1697

C++ query benchmark program for brute force linear scan and mih (pdq/cpp/index/mih.h)
Benchmark implementation located in pdq/cpp/bin/benchmark-query.cpp
Benchmark results in pdq/cpp/index/README.md

To run:

cd pdq/cpp
make benchmark-query
./benchmark-query

Sample results (ran on Ubuntu 24.04.1 LTS, Intel Core i7-14700KF with 20 cores, 28 threads, 64GB RAM):

$ ./benchmark-query -m linear
METHOD: Linear query
QUERY COUNT:             1000
INDEX COUNT:             10000
TOTAL MATCH COUNT:       1000
TOTAL QUERY SECONDS:     0.258911
SECONDS PER QUERY:       0.000259

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[pdq][mlh] Add querying benchmark to /bin
3 participants