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

[pdq][mlh] Add hashing benchmark to /bin #1696

Open
Dcallies opened this issue Nov 13, 2024 · 0 comments
Open

[pdq][mlh] Add hashing benchmark to /bin #1696

Dcallies opened this issue Nov 13, 2024 · 0 comments
Labels
mlh Related to Major League Hacking Fellowship pdq Items related to the pdq libraries or reference implementations

Comments

@Dcallies
Copy link
Contributor

Dcallies commented Nov 13, 2024

Add a new script in the pdq/bin directory that can help test performance. CPP seems like a reasonable language to optimize performance for.

The script should take at a minimum:

  1. A list of photo files to run on (you can do a whole directory by doing something like hash_benchmark my_dir/*.jpg in bash
  2. An argument -n for number of runs (if n > photos, it should repeatedly hash the same photos)
  3. An --dihedral argument to also compute dihedrals

It should then at least output:

  1. Total time
  2. time per hash
@Dcallies Dcallies added pdq Items related to the pdq libraries or reference implementations mlh Related to Major League Hacking Fellowship labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mlh Related to Major League Hacking Fellowship pdq Items related to the pdq libraries or reference implementations
Projects
None yet
Development

No branches or pull requests

1 participant