Skip to content

Commit

Permalink
Migrate scala-stm benchmarks to Scala 3
Browse files Browse the repository at this point in the history
Also updates the order of annotations to avoid changing the benchmark
primary group when compiled with Scala 3.
  • Loading branch information
lbulej committed Jun 7, 2024
1 parent 6030937 commit a36842a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import org.renaissance.BenchmarkResult.Validators
import org.renaissance.License

@Name("philosophers")
@Group("scala")
@Group("scala-stm")
@Group("scala") // With Scala 3, the primary group goes last.
@Summary("Solves a variant of the dining philosophers problem using ScalaSTM.")
@Licenses(Array(License.BSD3))
@Repetitions(30)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import org.renaissance.BenchmarkResult.Validators
import org.renaissance.License

@Name("scala-stm-bench7")
@Group("scala")
@Group("scala-stm")
@Group("scala") // With Scala 3, the primary group goes last.
@Summary("Runs the stmbench7 benchmark using ScalaSTM.")
@Licenses(Array(License.BSD3, License.GPL2))
@Repetitions(60)
Expand Down
6 changes: 5 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,13 @@ lazy val scalaStdlibBenchmarks = (project in file("benchmarks/scala-stdlib"))
lazy val scalaStmBenchmarks = (project in file("benchmarks/scala-stm"))
.settings(
name := "scala-stm",
commonSettingsScala212,
commonSettingsScala3,
libraryDependencies := Seq(
"org.scala-stm" %% "scala-stm" % "0.11.1"
),
dependencyOverrides ++= Seq(
// Force common version of Scala 3 library.
"org.scala-lang" %% "scala3-library" % scalaVersion3
)
)
.dependsOn(
Expand Down

0 comments on commit a36842a

Please sign in to comment.