FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
MPHF-Experiments/src/tablePtrHash.cpp at main · ByteHamster/MPHF-Experiments · GitHub
ByteHamster
/
MPHF-Experiments
Public
Notifications
You must be signed in to change notification settings
Fork
5
Star
11
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
MPHF-Experiments
/
src
/
tablePtrHash.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
66 lines (51 loc) · 2.76 KB
Breadcrumbs
MPHF-Experiments
/
src
/
tablePtrHash.cpp
Copy path
File metadata and controls
66 lines (51 loc) · 2.76 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#
include
<
tlx/cmdline_parser.hpp
>
#
include
"
bucketplacement/PhobicContender.h
"
#
include
"
bucketplacement/PartitionedPTHashContender.h
"
#
include
"
fingerprinting/FiPSContender.h
"
#
include
"
fingerprinting/RustFmphContender.h
"
#
include
"
bucketplacement/PTHashContender.h
"
#
include
"
recsplit/SIMDRecSplitContender.h
"
#
include
"
retrievalbased/SicHashContender.h
"
#
include
"
shockhash/BipartiteShockHashFlatContender.h
"
#
include
"
bucketplacement/ChdContender.h
"
#
include
"
bucketplacement/RustPtrHashContender.h
"
#
include
"
recsplit/ConsensusContender.h
"
/*
*
* Comparison table used in "PtrHash: Minimal Perfect Hashing at RAM Throughput".
* https://arxiv.org/abs/2502.15539
*/
int
main
(
int
argc,
char
** argv) {
size_t
N =
5e6
;
tlx::CmdlineParser cmd;
cmd.
add_bytes
(
'
n
'
,
"
numKeys
"
, N,
"
Number of objects
"
);
cmd.
add_bytes
(
'
q
'
,
"
numQueries
"
, Contender::numQueries,
"
Number of queries to perform
"
);
cmd.
add_bytes
(
'
t
'
,
"
numThreads
"
, Contender::numThreads,
"
Number of threads to use for construction
"
);
cmd.
add_flag
(
'
T
'
,
"
skipTests
"
, Contender::skipTests,
"
Skip testing PHF for validity
"
);
if
(!cmd.
process
(argc, argv)) {
return
1
;
}
{ConsensusContender<
256
,
0.1
>(N).
run
();}
{ConsensusContender<
512
,
0.03
>(N).
run
();}
{FiPSContender<>(N,
1.5
).
run
();}
{FiPSContender<>(N,
2.0
).
run
();}
{
RustPtrHashContender
(N, RustPtrHashContender::
VARIANT_LINEAR_VEC
,
3.0
).
run
();}
{
RustPtrHashContender
(N, RustPtrHashContender::
VARIANT_CUBIC_EF
,
4.0
).
run
();}
{PTHashContender<
true
, pthash::compact_compact>(N,
0.99
,
4.0
).
run
();}
{PTHashContender<
true
, pthash::elias_fano>(N,
0.99
,
5.0
).
run
();}
{PartitionedPTHashContender<
true
, pthash::compact_compact>(N,
0.99
,
4.0
).
run
();}
{PartitionedPTHashContender<
true
, pthash::elias_fano>(N,
0.99
,
5.0
).
run
();}
{PhobicContender<pthash::dense_interleaved<pthash::compact>, pthash::opt_bucketer>(N,
1.0
,
3.9
).
run
();}
{PhobicContender<pthash::dense_interleaved<pthash::rice>, pthash::opt_bucketer>(N,
1.0
,
4.5
).
run
();}
{PhobicContender<pthash::dense_interleaved<pthash::rice>, pthash::opt_bucketer>(N,
1.0
,
6.5
).
run
();}
{PhobicContender<pthash::dense_interleaved<pthash::compact>, pthash::opt_bucketer>(N,
1.0
,
6.5
).
run
();}
{PhobicContender<pthash::dense_interleaved<pthash::rice>, pthash::opt_bucketer>(N,
1.0
,
9.0
).
run
();}
{SicHashContender<
true
,
64
>(N,
0.97
,
sichash::SicHashConfig
().
percentages
(
0.45
,
0.31
)).
run
();}
{SicHashContender<
true
,
64
>(N,
0.9
,
sichash::SicHashConfig
().
percentages
(
0.21
,
0.78
)).
run
();}
{SIMDRecSplitContender<
5
>(N,
5
).
run
();}
{SIMDRecSplitContender<
8
>(N,
100
).
run
();}
{
RustFmphContender
(N,
1.0
).
run
();}
{
RustFmphContender
(N,
2.0
).
run
();}
{
ChdContender
(N,
1.0
,
1.0
,
3
,
true
).
run
();}
{BipartiteShockHashFlatContender<
64
>(N).
run
();}
return
0
;
}
Back
|
FazBrowse Home
|
New Git URL