diff --git a/benchmarks/src/main/scala/coulomb/benchmarks/quantity.scala b/benchmarks/src/main/scala/coulomb/benchmarks/quantity.scala index 843895601..3d05a58cd 100644 --- a/benchmarks/src/main/scala/coulomb/benchmarks/quantity.scala +++ b/benchmarks/src/main/scala/coulomb/benchmarks/quantity.scala @@ -50,8 +50,6 @@ class QuantityBenchmark: import coulomb.testing.units.{*, given} import algebra.instances.all.given - import coulomb.policy.standard.given - var data: Vector[Quantity[Double, Meter]] = Vector.empty[Quantity[Double, Meter]] @@ -65,7 +63,7 @@ class QuantityBenchmark: @Benchmark def add1V1U_opt(): Quantity[Double, Meter] = - // import coulomb.ops.standard.optimizations.all.given + import coulomb.benchmarks.algebras.given data.foldLeft(0d.withUnit[Meter]) { (s, x) => s + x } @Benchmark @@ -74,5 +72,5 @@ class QuantityBenchmark: @Benchmark def add1V2U_opt(): Quantity[Double, Kilo * Meter] = - // import coulomb.ops.standard.optimizations.all.given + import coulomb.benchmarks.algebras.given data.foldLeft(0d.withUnit[Kilo * Meter]) { (s, x) => s + x }