mirror of
https://github.com/simon987/fastimagehash.git
synced 2025-12-16 07:39:02 +00:00
API cleanup
This commit is contained in:
@@ -24,7 +24,7 @@ static void BM_phash(benchmark::State &state) {
|
||||
void *buf = load_test_file(&size);
|
||||
|
||||
for (auto _ : state) {
|
||||
phash_mem(buf, tmp, size, state.range(), 4);
|
||||
phash_mem(buf, size, tmp, state.range(), 4);
|
||||
}
|
||||
|
||||
free(buf);
|
||||
@@ -35,7 +35,7 @@ static void BM_whash(benchmark::State &state) {
|
||||
void *buf = load_test_file(&size);
|
||||
|
||||
for (auto _ : state) {
|
||||
whash_mem(buf, tmp, size, state.range(), 0, "haar");
|
||||
whash_mem(buf, size, tmp, state.range(), 0, "haar");
|
||||
}
|
||||
|
||||
free(buf);
|
||||
@@ -46,7 +46,7 @@ static void BM_dhash(benchmark::State &state) {
|
||||
void *buf = load_test_file(&size);
|
||||
|
||||
for (auto _ : state) {
|
||||
dhash_mem(buf, tmp, size, state.range());
|
||||
dhash_mem(buf, size, tmp, state.range());
|
||||
}
|
||||
|
||||
free(buf);
|
||||
@@ -57,7 +57,7 @@ static void BM_ahash(benchmark::State &state) {
|
||||
void *buf = load_test_file(&size);
|
||||
|
||||
for (auto _ : state) {
|
||||
ahash_mem(buf, tmp, size, state.range());
|
||||
ahash_mem(buf, size, tmp, state.range());
|
||||
}
|
||||
|
||||
free(buf);
|
||||
@@ -68,7 +68,7 @@ static void BM_mhash(benchmark::State &state) {
|
||||
void *buf = load_test_file(&size);
|
||||
|
||||
for (auto _ : state) {
|
||||
mhash_mem(buf, tmp, size, state.range());
|
||||
mhash_mem(buf, size, tmp, state.range());
|
||||
}
|
||||
|
||||
free(buf);
|
||||
@@ -81,7 +81,7 @@ static void BM_multi(benchmark::State &state) {
|
||||
multi_hash_t *m = multi_hash_create(state.range());
|
||||
|
||||
for (auto _ : state) {
|
||||
multi_hash_file(filepath, m, state.range(), 4, 0);
|
||||
multi_hash_file(filepath, m, state.range(), 4, 0, "haar");
|
||||
}
|
||||
|
||||
multi_hash_destroy(m);
|
||||
@@ -89,7 +89,6 @@ static void BM_multi(benchmark::State &state) {
|
||||
free(buf);
|
||||
}
|
||||
|
||||
|
||||
BENCHMARK(BM_phash)->ArgName("size")->Arg(8);
|
||||
BENCHMARK(BM_whash)->ArgName("size")->Arg(8);
|
||||
BENCHMARK(BM_dhash)->ArgName("size")->Arg(8);
|
||||
|
||||
Reference in New Issue
Block a user