Skip to content

Commit

Permalink
use assert API for benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
zeotuan committed Dec 8, 2024
1 parent 8e470d7 commit 3e6b254
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private class DatasetComparerBenchmark extends DatasetComparer {
val ds1 = spark.range(0, 1000000, 1, 8)
val ds3 = ds1

val result = Try(assertLargeDatasetContentEqualityV2(ds1, ds3))
val result = Try(assertLargeDatasetEqualityV2(ds1, ds3))

blackHole.consume(result)
result.isSuccess
Expand Down
11 changes: 7 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,16 @@ lazy val commonSettings = Seq(
else Seq.empty)
},
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-sql" % sparkVersion % "provided",
"org.scalatest" %% "scalatest" % "3.2.18" % "test"
"org.scalatest" %% "scalatest" % "3.2.18" % "test"
)
)

lazy val core = (project in file("core"))
.settings(
commonSettings,
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-sql" % sparkVersion % "provided"
),
name := "core",
Compile / packageSrc / publishArtifact := true,
Compile / packageDoc / publishArtifact := true
Expand All @@ -56,7 +58,8 @@ lazy val benchmarks = (project in file("benchmarks"))
.settings(commonSettings)
.settings(
libraryDependencies ++= Seq(
"org.openjdk.jmh" % "jmh-generator-annprocess" % "1.37" // required for jmh IDEA plugin. Make sure this version matches sbt-jmh version!
"org.apache.spark" %% "spark-sql" % sparkVersion % "compile",
"org.openjdk.jmh" % "jmh-generator-annprocess" % "1.37" // required for jmh IDEA plugin. Make sure this version matches sbt-jmh version!
),
name := "benchmarks",
publish / skip := true
Expand Down Expand Up @@ -121,4 +124,4 @@ updateOptions := updateOptions.value.withLatestSnapshots(false)

import xerial.sbt.Sonatype.sonatypeCentralHost

ThisBuild / sonatypeCredentialHost := sonatypeCentralHost
ThisBuild / sonatypeCredentialHost := sonatypeCentralHost

0 comments on commit 3e6b254

Please sign in to comment.