Skip to content

Commit edef26c

Browse files
committed
JsonValue to support gc free parsing and adding benchmark
1 parent 9d6ec32 commit edef26c

File tree

3 files changed

+276
-41
lines changed

3 files changed

+276
-41
lines changed

build.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import me.champeau.jmh.JmhBytecodeGeneratorTask
21
import org.gradle.internal.os.OperatingSystem
3-
42
import java.time.Duration
53

64
plugins {
@@ -81,6 +79,9 @@ dependencies {
8179
jmhImplementation group: 'com.google.guava', name: 'guava', version: '33.4.0-jre'
8280
compileOnly group: 'com.github.plokhotnyuk.jsoniter-scala', name: 'jsoniter-scala-macros_2.13', version: jsoniterScalaVersion
8381

82+
jmhImplementation group: 'org.openjdk.jmh', name: 'jmh-core', version: '1.37'
83+
jmhImplementation group: 'org.openjdk.jmh', name: 'jmh-generator-annprocess', version: '1.37'
84+
jmhAnnotationProcessor group: 'org.openjdk.jmh', name: 'jmh-generator-annprocess', version: '1.37'
8485
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.27.3'
8586
testImplementation group: 'org.apache.commons', name: 'commons-text', version: '1.13.0'
8687
testImplementation group: 'org.junit-pioneer', name: 'junit-pioneer', version: '2.3.0'
@@ -123,7 +124,7 @@ tasks.register('downloadTestData', Exec) {
123124
}
124125
}
125126

126-
// Configuration common to ALL Test tasks (including 'test', 'test256', 'test512')
127+
// Configuration common to ALL Test tasks
127128
tasks.withType(Test).configureEach {
128129
dependsOn tasks.named('downloadTestData')
129130

@@ -171,7 +172,8 @@ tasks.named('check') {
171172
dependsOn tasks.named('test512')
172173
}
173174

174-
tasks.withType(JmhBytecodeGeneratorTask).configureEach {
175+
// Fix: Use Fully Qualified Name here instead of importing it at the top
176+
tasks.withType(me.champeau.jmh.JmhBytecodeGeneratorTask).configureEach {
175177
jvmArgs.set(["--add-modules=jdk.incubator.vector"])
176178
}
177179

0 commit comments

Comments
 (0)