-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
87 lines (77 loc) · 2.66 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import mbjava.MbUtils
plugins {
`java`
id("me.champeau.jmh") version "0.7.2"
}
testing {
suites {
val test by getting(JvmTestSuite::class) {
useJUnitJupiter("5.10.3")
}
}
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
tasks.register("benchmarkJson") {
val json = MbUtils.benchmarksJson()
System.out.println(json);
}
allprojects {
repositories {
mavenCentral()
maven {
url = uri("https://artifacts-oss.netflix.net/artifactory/maven-oss-snapshots")
mavenContent {
includeGroup("com.netflix.zuul")
snapshotsOnly()
}
}
}
}
val benchmarkName = providers.systemProperty("benchmark").getOrElse("")
jmh {
fork.set(2)
includes.set(listOf(benchmarkName))
iterations.set(5)
warmupIterations.set(2)
failOnError.set(true)
jmhVersion.set("1.37")
profilers.set(listOf("gc"))
}
val brotli4jVersion = "1.18.0"
val nettyVersion = "4.1.117.Final"
val netty5Version = "5.0.0.Alpha5"
val zuulOssVersion = "2.6.2"
val log4jVersion = "2.24.3"
dependencies {
jmh("io.projectreactor.netty:reactor-netty-http:1.2.2")
jmh("org.springframework:spring-web:6.2.2")
jmh("com.fasterxml.jackson.core:jackson-databind:2.18.2")
jmh("com.google.guava:guava:33.4.0-jre")
jmh("com.github.ben-manes.caffeine:caffeine:3.2.0")
jmh("org.apache.commons:commons-lang3:3.17.0")
jmh("com.netflix.zuul:zuul-core:$zuulOssVersion")
jmh("io.netty:netty-codec-http:$nettyVersion")
jmh("io.netty:netty-codec-http2:$nettyVersion")
jmh("io.netty:netty-transport-native-epoll:$nettyVersion:linux-x86_64")
jmh("io.netty:netty-transport-native-epoll:$nettyVersion:linux-aarch_64")
jmh("io.netty:netty-common:$nettyVersion")
jmh("io.netty:netty5-buffer:$netty5Version")
jmh("io.netty:netty5-common:$netty5Version")
jmh("org.apache.logging.log4j:log4j-core:$log4jVersion")
jmh("org.slf4j:slf4j-api:2.0.16")
jmh("com.netflix.netflix-commons:netflix-commons-util:0.3.0")
jmh("com.fasterxml.uuid:java-uuid-generator:5.1.0")
jmh("com.datastax.oss:java-driver-core:4.17.0")
jmh("com.github.luben:zstd-jni:1.5.6-9")
jmh("com.aayushatharva.brotli4j:brotli4j:$brotli4jVersion")
jmh("com.aayushatharva.brotli4j:native-linux-x86_64:$brotli4jVersion")
jmh("com.aayushatharva.brotli4j:native-linux-aarch64:$brotli4jVersion")
jmh("com.aayushatharva.brotli4j:native-osx-x86_64:$brotli4jVersion")
jmh("com.aayushatharva.brotli4j:native-osx-aarch64:$brotli4jVersion")
}