A Go implementation of Facebook's PDQ
trust-and-safety pdq
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

add benchmark

Hailey c6f8fa02 74e13c25

+26
+26
README.md
··· 121 121 Note that outputs from the C++ implementation's example binary and the `pdqhasher` binary provided here may not return hashes that are exactly the same due to 122 122 differences in resizing libraries. This is expected, see https://github.com/facebook/ThreatExchange/tree/main/pdq#hashing. 123 123 124 + ## Benchmark 125 + 126 + ``` 127 + ❯ go run ./cmd/benchmark --workers 32 --with-resize --duration 10 128 + CPU: AMD RYZEN AI MAX+ 395 w/ Radeon 8060S 129 + CPU Cores: 32 130 + Image Directory: testdata/images 131 + Duration: 10s 132 + Workers: 32 133 + With Resize: true 134 + With I/O: false 135 + 136 + Results 137 + ======= 138 + 139 + Total Time: 10.011804696s 140 + Total Hashes: 27999 141 + Errors: 0 142 + 143 + Throughput: 2796.6 hashes/sec 144 + Avg Time/Hash: 0.36 ms 145 + 146 + Per Worker: 875.0 hashes 147 + Per Worker/Sec: 87.4 hashes/sec 148 + ``` 149 + 124 150 ## References 125 151 126 152 - [PDQ Algorithm (C++ Reference)](https://github.com/facebook/ThreatExchange/tree/main/pdq)