Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Partitioned Filters
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Schmidt
Partitioned Filters
Commits
5e6ba58f
Commit
5e6ba58f
authored
1 year ago
by
Wlad
Browse files
Options
Downloads
Patches
Plain Diff
wip: initial test setup
parent
3e37e740
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#96874
failed
1 year ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/lookup/lookup_test.cpp
+28
-0
28 additions, 0 deletions
test/lookup/lookup_test.cpp
test/lookup/lookup_test.hpp
+35
-0
35 additions, 0 deletions
test/lookup/lookup_test.hpp
with
63 additions
and
0 deletions
test/lookup/lookup_test.cpp
0 → 100644
+
28
−
0
View file @
5e6ba58f
#include
"lookup_test.hpp"
#include
<gtest/gtest.h>
namespace
test
::
lookup_test
{
INSTANTIATE_TYPED_TEST_CASE_P
(
LookupBloomNaive64TestTypes
,
FilterTest
,
LookupBloomNaive64TestTypes
);
}
MAIN
();
// int main(int argc, char** argv) {
// using Filter = filters::Filter<filters::FilterType::LookupBloom,
// filters::lookupBloom::LookupNaive64<144>,
// 144,
// filters::parameter::PowerOfTwoMurmurScalar64>;
// auto filter = std::make_unique<Filter>(144, 1, 1, 1);
// filter->add(1);
// filter->add(2);
// filter->add(3);
// filter->add(4);
// filter->add(5);
// filter->add(115);
// std::cout << filter->contains(1) << std::endl;
// std::cout << filter->contains(1000) << std::endl;
// }
\ No newline at end of file
This diff is collapsed.
Click to expand it.
test/lookup/lookup_test.hpp
0 → 100644
+
35
−
0
View file @
5e6ba58f
#pragma once
#include
<cstddef>
#include
<lookup/lookup_parameter.hpp>
#include
"../filter_test.hpp"
namespace
test
::
lookup_test
{
namespace
lookup
=
filters
::
lookupBloom
;
namespace
parameter
=
filters
::
parameter
;
static
constexpr
size_t
s
=
144
;
static
constexpr
size_t
n_s
=
1000
,
n_l
=
1000000
;
static
constexpr
size_t
k_s
=
8
,
k_l
=
16
;
static
constexpr
size_t
n_partitions_s
=
2
,
n_partitition_l
=
16
;
static
constexpr
filters
::
FilterType
TestFilterType
=
filters
::
FilterType
::
LookupBloom
;
template
<
template
<
size_t
>
typename
FP
,
int64_t
expected_fp
>
using
LookupBloomScalarSmall
=
FilterTestConfig
<
TestFilterType
,
FP
,
k_l
,
parameter
::
LookupScalar16
,
n_s
,
s
,
0
,
2
,
2
,
expected_fp
>
;
using
LookupBloomNaive64TestTypes
=
::
testing
::
Types
<
LookupBloomScalarSmall
<
lookup
::
LookupNaive64
,
0
>>
;
}
// namespace test::lookup_test
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment