benchmark changed due to new names of svd functions

This commit is contained in:
margarita0303 2022-07-26 22:42:36 +03:00
parent f7ac73b748
commit 5d74fd8bf4

View File

@ -8,9 +8,9 @@ import kotlinx.benchmark.Benchmark
import kotlinx.benchmark.Blackhole import kotlinx.benchmark.Blackhole
import kotlinx.benchmark.Scope import kotlinx.benchmark.Scope
import kotlinx.benchmark.State import kotlinx.benchmark.State
import space.kscience.kmath.tensors.core.BroadcastDoubleTensorAlgebra.svdGolabKahan import space.kscience.kmath.tensors.core.BroadcastDoubleTensorAlgebra.svd
import space.kscience.kmath.tensors.core.DoubleTensorAlgebra import space.kscience.kmath.tensors.core.DoubleTensorAlgebra
import space.kscience.kmath.tensors.core.DoubleTensorAlgebra.Companion.svd import space.kscience.kmath.tensors.core.DoubleTensorAlgebra.Companion.svdPowerMethod
@State(Scope.Benchmark) @State(Scope.Benchmark)
class SVDBenchmark { class SVDBenchmark {
@ -21,14 +21,14 @@ class SVDBenchmark {
@Benchmark @Benchmark
fun svdPowerMethod(blackhole: Blackhole) { fun svdPowerMethod(blackhole: Blackhole) {
blackhole.consume( blackhole.consume(
tensor.svd() tensor.svdPowerMethod()
) )
} }
@Benchmark @Benchmark
fun svdGolabKahan(blackhole: Blackhole) { fun svdGolabKahan(blackhole: Blackhole) {
blackhole.consume( blackhole.consume(
tensor.svdGolabKahan() tensor.svd()
) )
} }
} }