Skip to content

Commit d92c7f8

Browse files
committed
Special algorithms only on demand
1 parent 221cc53 commit d92c7f8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

benchmarks/bulk-insert-and-query.cc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -727,63 +727,63 @@ int main(int argc, char * argv[]) {
727727
// not fully optimized
728728

729729
#ifdef __AVX2__
730-
if (algorithmId == 16 || algorithmId < 0) {
730+
if (algorithmId == 16) {
731731
auto cf = FilterBenchmark<SimdBlockFilter<SimpleMixSplit>>(
732732
add_count, to_add, to_lookup, seed);
733733
cout << setw(NAME_WIDTH) << "BlockedBloom-2^n" << cf << endl;
734734
}
735735
#endif
736736

737-
if (algorithmId == 17 || algorithmId < 0) {
737+
if (algorithmId == 17) {
738738
auto cf = FilterBenchmark<
739739
CuckooFilter<uint64_t, 8, SingleTable, SimpleMixSplit>>(
740740
add_count, to_add, to_lookup, seed);
741741
cout << setw(NAME_WIDTH) << "Cuckoo8-2^n" << cf << endl;
742742
}
743743

744-
if (algorithmId == 18 || algorithmId < 0) {
744+
if (algorithmId == 18) {
745745
auto cf = FilterBenchmark<
746746
CuckooFilter<uint64_t, 12, SingleTable, SimpleMixSplit>>(
747747
add_count, to_add, to_lookup, seed);
748748
cout << setw(NAME_WIDTH) << "Cuckoo12-2^n" << cf << endl;
749749
}
750750

751-
if (algorithmId == 19 || algorithmId < 0) {
751+
if (algorithmId == 19) {
752752
auto cf = FilterBenchmark<
753753
CuckooFilter<uint64_t, 16, SingleTable, SimpleMixSplit>>(
754754
add_count, to_add, to_lookup, seed);
755755
cout << setw(NAME_WIDTH) << "Cuckoo16-2^n" << cf << endl;
756756
}
757757

758-
if (algorithmId == 20 || algorithmId < 0) {
758+
if (algorithmId == 20) {
759759
auto cf = FilterBenchmark<
760760
CuckooFilter<uint64_t, 13, PackedTable, SimpleMixSplit>>(
761761
add_count, to_add, to_lookup, seed);
762762
cout << setw(NAME_WIDTH) << "CuckooSemiSort13-2^n" << cf << endl;
763763
}
764764

765-
if (algorithmId == 21 || algorithmId < 0) {
765+
if (algorithmId == 21) {
766766
auto cf = FilterBenchmark<
767767
XorFilter2n<uint64_t, uint8_t, UIntArray<uint8_t>, SimpleMixSplit>>(
768768
add_count, to_add, to_lookup, seed);
769769
cout << setw(NAME_WIDTH) << "Xor8-2^n" << cf << endl;
770770
}
771771

772-
if (algorithmId == 22 || algorithmId < 0) {
772+
if (algorithmId == 22) {
773773
auto cf = FilterBenchmark<
774774
XorFilter2<uint64_t, uint16_t, NBitArray<uint16_t, 10>, SimpleMixSplit>>(
775775
add_count, to_add, to_lookup, seed);
776776
cout << setw(NAME_WIDTH) << "Xor10" << cf << endl;
777777
}
778778

779-
if (algorithmId == 23 || algorithmId < 0) {
779+
if (algorithmId == 23) {
780780
auto cf = FilterBenchmark<
781781
XorFilter2<uint64_t, uint16_t, NBitArray<uint16_t, 14>, SimpleMixSplit>>(
782782
add_count, to_add, to_lookup, seed);
783783
cout << setw(NAME_WIDTH) << "Xor14" << cf << endl;
784784
}
785785

786-
if (algorithmId == 24 || algorithmId < 0) {
786+
if (algorithmId == 24) {
787787
auto cf = FilterBenchmark<
788788
XorFilter2<uint64_t, uint32_t, UInt10Array, SimpleMixSplit>>(
789789
add_count, to_add, to_lookup, seed);
@@ -793,14 +793,14 @@ int main(int argc, char * argv[]) {
793793

794794
// broken algorithms (don't always find all key)
795795
/*
796-
if (algorithmId == 25 || algorithmId < 0) {
796+
if (algorithmId == 25) {
797797
auto cf = FilterBenchmark<
798798
CuckooFilter<uint64_t, 9, PackedTable, SimpleMixSplit>>(
799799
add_count, to_add, to_lookup, seed);
800800
cout << setw(NAME_WIDTH) << "CuckooSemiSort9-2^n" << cf << endl;
801801
}
802802
803-
if (algorithmId == 26 || algorithmId < 0) {
803+
if (algorithmId == 26) {
804804
auto cf = FilterBenchmark<
805805
CuckooFilter<uint64_t, 17, PackedTable, SimpleMixSplit>>(
806806
add_count, to_add, to_lookup, seed);

0 commit comments

Comments
 (0)