sh> git clone https://github.com/baidu/uid-generator.git
sh> cd uid-generator
sh> mvn install -Dmaven.test.skip
login TiDB and running sql:
mysql> source ./init.sql
using IDE run it
or
sh> mvn package
sh> cd target
sh> java -jar demo-0.0.1-SNAPSHOT.jar
modify Test.java
public void test() throws Exception {
int concurrency = 4;
int repeat = 10000;