switched build system from sbt to Gradle
This commit is contained in:
19
antlr/build.gradle
Normal file
19
antlr/build.gradle
Normal file
@@ -0,0 +1,19 @@
|
||||
plugins {
|
||||
id 'antlr'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation rootProject
|
||||
|
||||
testImplementation group: "net.woggioni", name: "jwo", version: getProperty('version.jwo')
|
||||
testImplementation project(':test-utils')
|
||||
testImplementation group: "com.fasterxml.jackson.core", name:"jackson-databind", version: getProperty('version.jackson')
|
||||
testImplementation group: "org.tukaani", name: "xz", version: getProperty('version.xz')
|
||||
antlr group: "org.antlr", name: "antlr4", version: getProperty('version.antlr')
|
||||
antlr group: "org.antlr", name: "antlr4-runtime", version: getProperty('version.antlr')
|
||||
}
|
||||
|
||||
generateGrammarSource {
|
||||
maxHeapSize = "64m"
|
||||
arguments += ['-package', 'net.woggioni.wson.antlr']
|
||||
}
|
@@ -55,7 +55,7 @@ public class PerformanceTest {
|
||||
@Test
|
||||
@SneakyThrows
|
||||
public void loopTest() {
|
||||
double jacksonTime, worthTime, antlrTime;
|
||||
double jacksonTime, wsonTime, antlrTime;
|
||||
final int loops = 100;
|
||||
Chronometer chr = new Chronometer();
|
||||
{
|
||||
@@ -76,8 +76,8 @@ public class PerformanceTest {
|
||||
Value value = new JSONParser().parse(smallTestData());
|
||||
}
|
||||
}
|
||||
worthTime = chr.elapsed(Chronometer.UnitOfMeasure.MILLISECONDS);
|
||||
System.out.printf("Worth time: %8s msec\n", String.format("%.3f", worthTime));
|
||||
wsonTime = chr.elapsed(Chronometer.UnitOfMeasure.MILLISECONDS);
|
||||
System.out.printf("Worth time: %8s msec\n", String.format("%.3f", wsonTime));
|
||||
}
|
||||
{
|
||||
for(int j = 0; j < 2; j++) {
|
||||
|
Reference in New Issue
Block a user