Skip to content

Commit 4072892

Browse files
committed
saving
1 parent 4d76e61 commit 4072892

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,14 @@ mvn exec:java -Dexec.mainClass="me.lemire.xfuse.Statistics" -q
108108
| 1 000 000 | 9,84 | 9,04 | 19,68 | 18,09 |
109109
| 10 000 000 | 9,84 | 9,02 | 19,68 | 18,04 |
110110

111-
## Estimated false positive rates (percent)
112111

112+
## Estimated false positive rates (percent)
113113
| N | Xor8 | BinaryFuse8 | Xor16 | BinaryFuse16 |
114114
|---|---|---|---|---|
115-
| 1 000 | 0,3000% | 0,6000% | 0,0000% | 0,0000% |
116-
| 10 000 | 0,3400% | 0,3200% | 0,0100% | 0,0000% |
117-
| 100 000 | 0,3890% | 0,3930% | 0,0010% | 0,0000% |
118-
| 1 000 000 | 0,3900% | 0,4050% | 0,0010% | 0,0000% |
119-
| 10 000 000 | 0,3980% | 0,4020% | 0,0020% | 0,0000% |
115+
| 1 000 | 0,3945% | 0,3895% | 0,0010% | 0,0025% |
116+
| 10 000 | 0,4020% | 0,4080% | 0,0015% | 0,0020% |
117+
| 100 000 | 0,3945% | 0,4025% | 0,0010% | 0,0005% |
118+
| 1 000 000 | 0,3745% | 0,3865% | 0,0025% | 0,0015% |
120119

121120

122121
## Benchmarks

src/main/java/me/lemire/xfuse/Statistics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ private static Metrics evaluateFilter(String filterName, Function<Arena, XorFilt
155155
m.bitsPerElement = (filterSizeBytes * 8.0) / numElements;
156156

157157
// False positive test using odd numbers
158-
int testSamples = Math.min(100_000, numElements);
158+
int testSamples = 200_000;
159159
int falsePositives = 0;
160160
for (int i = 0; i < testSamples; i++) {
161161
long testKey = (i * 2L) + 1;

0 commit comments

Comments
 (0)