Skip to content

Commit

Permalink
JMH: Improvements to jmh.gradle (#9390)
Browse files Browse the repository at this point in the history
Cleanup jmh.gradle and upgrade JMH Version
  • Loading branch information
Fokko authored Jan 4, 2024
1 parent 3aa0fcd commit be4e7d2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions jmh.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
*/

if (jdkVersion != '8' && jdkVersion != '11' && jdkVersion != '17') {
throw new GradleException("The JMH benchamrks must be run with JDK 8 or JDK 11 or JDK 17")
throw new GradleException("The JMH benchmarks must be run with JDK 8 or JDK 11 or JDK 17")
}

def sparkVersions = (System.getProperty("sparkVersions") != null ? System.getProperty("sparkVersions") : System.getProperty("defaultSparkVersions")).split(",")
def scalaVersion = System.getProperty("scalaVersion") != null ? System.getProperty("scalaVersion") : System.getProperty("defaultScalaVersion")
def jmhProjects = [project(":iceberg-core")]
def jmhProjects = [project(":iceberg-core"), project(":iceberg-data")]

if (sparkVersions.contains("3.3")) {
jmhProjects.add(project(":iceberg-spark:iceberg-spark-3.3_${scalaVersion}"))
Expand All @@ -40,8 +40,6 @@ if (sparkVersions.contains("3.5")) {
jmhProjects.add(project(":iceberg-spark:iceberg-spark-extensions-3.5_${scalaVersion}"))
}

jmhProjects.add(project(":iceberg-data"))

configure(jmhProjects) {
apply plugin: 'me.champeau.jmh'
apply plugin: 'io.morethan.jmhreport'
Expand All @@ -50,7 +48,7 @@ configure(jmhProjects) {
mkdir(file(jmhReportDir))

jmh {
jmhVersion = '1.32'
jmhVersion = '1.37'
failOnError = true
forceGC = true
includeTests = true
Expand Down

0 comments on commit be4e7d2

Please sign in to comment.