comment out tests

This commit is contained in:
zzz
2012-07-27 15:49:46 +00:00
parent 54a80d6bdc
commit 4298958952
2 changed files with 9 additions and 1 deletions

View File

@@ -371,6 +371,7 @@ public class DecayingBloomFilter {
* 1792 2.4E-6; 4096 0.14%; 5120 0.6%; 6144 1.7%; 8192 6.8%; 10240 15%
*</pre>
*/
/*****
public static void main(String args[]) {
System.out.println("Usage: DecayingBloomFilter [kbps [m [iterations]]] (default 256 23 10)");
int kbps = 256;
@@ -452,4 +453,5 @@ public class DecayingBloomFilter {
//System.out.println("inserted: " + bloom.size() + " with " + bloom.capacity()
// + " (" + bloom.falsePositives()*100.0d + "% false positive)");
}
*****/
}

View File

@@ -253,14 +253,16 @@ public class DecayingHashSet extends DecayingBloomFilter {
/**
* vs. DBF, this measures 1.93x faster for testByLong and 2.46x faster for testByBytes.
*/
/*****
public static void main(String args[]) {
/** KBytes per sec, 1 message per KByte */
// KBytes per sec, 1 message per KByte
int kbps = 256;
int iterations = 10;
//testSize();
testByLong(kbps, iterations);
testByBytes(kbps, iterations);
}
*****/
/** and the answer is: 49.9 bytes. The ArrayWrapper alone measured 16, so that's 34 for the HashSet entry. */
/*****
@@ -280,6 +282,7 @@ public class DecayingHashSet extends DecayingBloomFilter {
*****/
/** 8 bytes, simulate the router message validator */
/*****
private static void testByLong(int kbps, int numRuns) {
int messages = 60 * 10 * kbps;
Random r = new Random();
@@ -304,8 +307,10 @@ public class DecayingHashSet extends DecayingBloomFilter {
+ falsePositives + " false positives");
}
*****/
/** 16 bytes, simulate the tunnel IV validator */
/*****
private static void testByBytes(int kbps, int numRuns) {
byte iv[][] = new byte[60*10*kbps][16];
Random r = new Random();
@@ -332,4 +337,5 @@ public class DecayingHashSet extends DecayingBloomFilter {
+ DataHelper.formatDuration(totalTime/numRuns) + " per run, there were "
+ falsePositives + " false positives");
}
*****/
}