|
1 | 1 | package com.orientechnologies.orient.core.index.hashindex.local;
|
2 | 2 |
|
3 |
| -import java.io.IOException; |
4 |
| -import java.util.HashSet; |
5 |
| -import java.util.Set; |
6 |
| - |
| 3 | +import com.orientechnologies.common.serialization.types.OIntegerSerializer; |
| 4 | +import com.orientechnologies.common.util.MersenneTwisterFast; |
| 5 | +import com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx; |
| 6 | +import com.orientechnologies.orient.core.metadata.schema.OType; |
| 7 | +import com.orientechnologies.orient.core.serialization.serializer.binary.OBinarySerializerFactory; |
7 | 8 | import com.orientechnologies.orient.core.storage.impl.local.OStorageLocalAbstract;
|
8 | 9 | import org.testng.Assert;
|
9 | 10 | import org.testng.annotations.AfterClass;
|
|
12 | 13 | import org.testng.annotations.BeforeMethod;
|
13 | 14 | import org.testng.annotations.Test;
|
14 | 15 |
|
15 |
| -import com.orientechnologies.common.serialization.types.OIntegerSerializer; |
16 |
| -import com.orientechnologies.common.util.MersenneTwisterFast; |
17 |
| -import com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx; |
18 |
| -import com.orientechnologies.orient.core.metadata.schema.OType; |
19 |
| -import com.orientechnologies.orient.core.serialization.serializer.binary.OBinarySerializerFactory; |
| 16 | +import java.io.IOException; |
| 17 | +import java.util.HashSet; |
| 18 | +import java.util.Set; |
20 | 19 |
|
21 | 20 | /**
|
22 | 21 | * @author Andrey Lomakin
|
23 | 22 | * @since 19.02.13
|
24 | 23 | */
|
25 | 24 | @Test
|
26 | 25 | public class OLocalHashTableTest {
|
27 |
| - private static final int KEYS_COUNT = 500000; |
| 26 | + private static final int KEYS_COUNT = 500000; |
28 | 27 |
|
29 | 28 | protected ODatabaseDocumentTx databaseDocumentTx;
|
30 | 29 |
|
@@ -119,7 +118,9 @@ public void testKeyPutRandomGaussian() throws IOException {
|
119 | 118 |
|
120 | 119 | public void testKeyDeleteRandomUniform() throws IOException {
|
121 | 120 | final Set<Integer> keys = new HashSet<Integer>();
|
122 |
| - final MersenneTwisterFast random = new MersenneTwisterFast(); |
| 121 | + long ms = System.currentTimeMillis(); |
| 122 | + System.out.println("testKeyDeleteRandomUniform : " + ms); |
| 123 | + final MersenneTwisterFast random = new MersenneTwisterFast(ms); |
123 | 124 |
|
124 | 125 | while (keys.size() < KEYS_COUNT) {
|
125 | 126 | int key = random.nextInt();
|
|
0 commit comments