v2.9.0 & sql structure and data

v2.9.0 & sql structure and data
This commit is contained in:
MaxKey
2021-08-09 22:45:00 +08:00
parent 76063b5428
commit 7429417590
6 changed files with 1153 additions and 25 deletions

View File

@@ -33,4 +33,16 @@ public class SonwFlakeIdTest {
System.out.println(seq);
System.out.println(snowFlake.parse(seq).getDateTime());
}
@Test
public void performance() {
SnowFlakeId snowFlake = new SnowFlakeId(1, 1);
long start = System.currentTimeMillis();
for (int i = 0; i < 1000000; i++) {
System.out.println(snowFlake.nextId());
}
System.out.println(System.currentTimeMillis() - start);
}
}