mirror of
https://github.com/gonum/gonum.git
synced 2025-10-28 17:31:56 +08:00
change benchmark constant names to lowercase
Changed SMALL, MEDIUM, LARGE, and HUGE to small, medum, large, and huge, respectively.
This commit is contained in:
@@ -130,68 +130,68 @@ func benchmarkCovarianceMatrixInPlace(b *testing.B, m mat64.Matrix) {
|
|||||||
|
|
||||||
func BenchmarkCovarianceMatrixSmallxSmall(b *testing.B) {
|
func BenchmarkCovarianceMatrixSmallxSmall(b *testing.B) {
|
||||||
// 10 * 10 elements
|
// 10 * 10 elements
|
||||||
x := randMat(SMALL, SMALL)
|
x := randMat(small, small)
|
||||||
benchmarkCovarianceMatrix(b, x)
|
benchmarkCovarianceMatrix(b, x)
|
||||||
}
|
}
|
||||||
func BenchmarkCovarianceMatrixSmallxMedium(b *testing.B) {
|
func BenchmarkCovarianceMatrixSmallxMedium(b *testing.B) {
|
||||||
// 10 * 1000 elements
|
// 10 * 1000 elements
|
||||||
x := randMat(SMALL, MEDIUM)
|
x := randMat(small, medium)
|
||||||
benchmarkCovarianceMatrix(b, x)
|
benchmarkCovarianceMatrix(b, x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCovarianceMatrixMediumxSmall(b *testing.B) {
|
func BenchmarkCovarianceMatrixMediumxSmall(b *testing.B) {
|
||||||
// 1000 * 10 elements
|
// 1000 * 10 elements
|
||||||
x := randMat(MEDIUM, SMALL)
|
x := randMat(medium, small)
|
||||||
benchmarkCovarianceMatrix(b, x)
|
benchmarkCovarianceMatrix(b, x)
|
||||||
}
|
}
|
||||||
func BenchmarkCovarianceMatrixMediumxMedium(b *testing.B) {
|
func BenchmarkCovarianceMatrixMediumxMedium(b *testing.B) {
|
||||||
// 1000 * 1000 elements
|
// 1000 * 1000 elements
|
||||||
x := randMat(MEDIUM, MEDIUM)
|
x := randMat(medium, medium)
|
||||||
benchmarkCovarianceMatrix(b, x)
|
benchmarkCovarianceMatrix(b, x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCovarianceMatrixLargexSmall(b *testing.B) {
|
func BenchmarkCovarianceMatrixLargexSmall(b *testing.B) {
|
||||||
// 1e5 * 10 elements
|
// 1e5 * 10 elements
|
||||||
x := randMat(LARGE, SMALL)
|
x := randMat(large, small)
|
||||||
benchmarkCovarianceMatrix(b, x)
|
benchmarkCovarianceMatrix(b, x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCovarianceMatrixHugexSmall(b *testing.B) {
|
func BenchmarkCovarianceMatrixHugexSmall(b *testing.B) {
|
||||||
// 1e7 * 10 elements
|
// 1e7 * 10 elements
|
||||||
x := randMat(HUGE, SMALL)
|
x := randMat(huge, small)
|
||||||
benchmarkCovarianceMatrix(b, x)
|
benchmarkCovarianceMatrix(b, x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCovarianceMatrixSmallxSmallInPlace(b *testing.B) {
|
func BenchmarkCovarianceMatrixSmallxSmallInPlace(b *testing.B) {
|
||||||
// 10 * 10 elements
|
// 10 * 10 elements
|
||||||
x := randMat(SMALL, SMALL)
|
x := randMat(small, small)
|
||||||
benchmarkCovarianceMatrixInPlace(b, x)
|
benchmarkCovarianceMatrixInPlace(b, x)
|
||||||
}
|
}
|
||||||
func BenchmarkCovarianceMatrixSmallxMediumInPlace(b *testing.B) {
|
func BenchmarkCovarianceMatrixSmallxMediumInPlace(b *testing.B) {
|
||||||
// 10 * 1000 elements
|
// 10 * 1000 elements
|
||||||
x := randMat(SMALL, MEDIUM)
|
x := randMat(small, medium)
|
||||||
benchmarkCovarianceMatrixInPlace(b, x)
|
benchmarkCovarianceMatrixInPlace(b, x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCovarianceMatrixMediumxSmallInPlace(b *testing.B) {
|
func BenchmarkCovarianceMatrixMediumxSmallInPlace(b *testing.B) {
|
||||||
// 1000 * 10 elements
|
// 1000 * 10 elements
|
||||||
x := randMat(MEDIUM, SMALL)
|
x := randMat(medium, small)
|
||||||
benchmarkCovarianceMatrixInPlace(b, x)
|
benchmarkCovarianceMatrixInPlace(b, x)
|
||||||
}
|
}
|
||||||
func BenchmarkCovarianceMatrixMediumxMediumInPlace(b *testing.B) {
|
func BenchmarkCovarianceMatrixMediumxMediumInPlace(b *testing.B) {
|
||||||
// 1000 * 1000 elements
|
// 1000 * 1000 elements
|
||||||
x := randMat(MEDIUM, MEDIUM)
|
x := randMat(medium, medium)
|
||||||
benchmarkCovarianceMatrixInPlace(b, x)
|
benchmarkCovarianceMatrixInPlace(b, x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCovarianceMatrixLargexSmallInPlace(b *testing.B) {
|
func BenchmarkCovarianceMatrixLargexSmallInPlace(b *testing.B) {
|
||||||
// 1e5 * 10 elements
|
// 1e5 * 10 elements
|
||||||
x := randMat(LARGE, SMALL)
|
x := randMat(large, small)
|
||||||
benchmarkCovarianceMatrixInPlace(b, x)
|
benchmarkCovarianceMatrixInPlace(b, x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCovarianceMatrixHugexSmallInPlace(b *testing.B) {
|
func BenchmarkCovarianceMatrixHugexSmallInPlace(b *testing.B) {
|
||||||
// 1e7 * 10 elements
|
// 1e7 * 10 elements
|
||||||
x := randMat(HUGE, SMALL)
|
x := randMat(huge, small)
|
||||||
benchmarkCovarianceMatrixInPlace(b, x)
|
benchmarkCovarianceMatrixInPlace(b, x)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,10 +17,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
SMALL = 10
|
small = 10
|
||||||
MEDIUM = 1000
|
medium = 1000
|
||||||
LARGE = 100000
|
large = 100000
|
||||||
HUGE = 10000000
|
huge = 10000000
|
||||||
)
|
)
|
||||||
|
|
||||||
// tests for unweighted versions
|
// tests for unweighted versions
|
||||||
@@ -41,46 +41,46 @@ func benchmarkMean(b *testing.B, s, wts []float64) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanSmall(b *testing.B) {
|
func BenchmarkMeanSmall(b *testing.B) {
|
||||||
s := RandomSlice(SMALL)
|
s := RandomSlice(small)
|
||||||
benchmarkMean(b, s, nil)
|
benchmarkMean(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanMedium(b *testing.B) {
|
func BenchmarkMeanMedium(b *testing.B) {
|
||||||
s := RandomSlice(MEDIUM)
|
s := RandomSlice(medium)
|
||||||
benchmarkMean(b, s, nil)
|
benchmarkMean(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanLarge(b *testing.B) {
|
func BenchmarkMeanLarge(b *testing.B) {
|
||||||
s := RandomSlice(LARGE)
|
s := RandomSlice(large)
|
||||||
benchmarkMean(b, s, nil)
|
benchmarkMean(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanHuge(b *testing.B) {
|
func BenchmarkMeanHuge(b *testing.B) {
|
||||||
s := RandomSlice(HUGE)
|
s := RandomSlice(huge)
|
||||||
benchmarkMean(b, s, nil)
|
benchmarkMean(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanSmallWeighted(b *testing.B) {
|
func BenchmarkMeanSmallWeighted(b *testing.B) {
|
||||||
s := RandomSlice(SMALL)
|
s := RandomSlice(small)
|
||||||
wts := RandomSlice(SMALL)
|
wts := RandomSlice(small)
|
||||||
benchmarkMean(b, s, wts)
|
benchmarkMean(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanMediumWeighted(b *testing.B) {
|
func BenchmarkMeanMediumWeighted(b *testing.B) {
|
||||||
s := RandomSlice(MEDIUM)
|
s := RandomSlice(medium)
|
||||||
wts := RandomSlice(MEDIUM)
|
wts := RandomSlice(medium)
|
||||||
benchmarkMean(b, s, wts)
|
benchmarkMean(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanLargeWeighted(b *testing.B) {
|
func BenchmarkMeanLargeWeighted(b *testing.B) {
|
||||||
s := RandomSlice(LARGE)
|
s := RandomSlice(large)
|
||||||
wts := RandomSlice(LARGE)
|
wts := RandomSlice(large)
|
||||||
benchmarkMean(b, s, wts)
|
benchmarkMean(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanHugeWeighted(b *testing.B) {
|
func BenchmarkMeanHugeWeighted(b *testing.B) {
|
||||||
s := RandomSlice(HUGE)
|
s := RandomSlice(huge)
|
||||||
wts := RandomSlice(HUGE)
|
wts := RandomSlice(huge)
|
||||||
benchmarkMean(b, s, wts)
|
benchmarkMean(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,46 +92,46 @@ func benchmarkVariance(b *testing.B, s, wts []float64) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkVarianceSmall(b *testing.B) {
|
func BenchmarkVarianceSmall(b *testing.B) {
|
||||||
s := RandomSlice(SMALL)
|
s := RandomSlice(small)
|
||||||
benchmarkVariance(b, s, nil)
|
benchmarkVariance(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkVarianceMedium(b *testing.B) {
|
func BenchmarkVarianceMedium(b *testing.B) {
|
||||||
s := RandomSlice(MEDIUM)
|
s := RandomSlice(medium)
|
||||||
benchmarkVariance(b, s, nil)
|
benchmarkVariance(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkVarianceLarge(b *testing.B) {
|
func BenchmarkVarianceLarge(b *testing.B) {
|
||||||
s := RandomSlice(LARGE)
|
s := RandomSlice(large)
|
||||||
benchmarkVariance(b, s, nil)
|
benchmarkVariance(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkVarianceHuge(b *testing.B) {
|
func BenchmarkVarianceHuge(b *testing.B) {
|
||||||
s := RandomSlice(HUGE)
|
s := RandomSlice(huge)
|
||||||
benchmarkVariance(b, s, nil)
|
benchmarkVariance(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkVarianceSmallWeighted(b *testing.B) {
|
func BenchmarkVarianceSmallWeighted(b *testing.B) {
|
||||||
s := RandomSlice(SMALL)
|
s := RandomSlice(small)
|
||||||
wts := RandomSlice(SMALL)
|
wts := RandomSlice(small)
|
||||||
benchmarkVariance(b, s, wts)
|
benchmarkVariance(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkVarianceMediumWeighted(b *testing.B) {
|
func BenchmarkVarianceMediumWeighted(b *testing.B) {
|
||||||
s := RandomSlice(MEDIUM)
|
s := RandomSlice(medium)
|
||||||
wts := RandomSlice(MEDIUM)
|
wts := RandomSlice(medium)
|
||||||
benchmarkVariance(b, s, wts)
|
benchmarkVariance(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkVarianceLargeWeighted(b *testing.B) {
|
func BenchmarkVarianceLargeWeighted(b *testing.B) {
|
||||||
s := RandomSlice(LARGE)
|
s := RandomSlice(large)
|
||||||
wts := RandomSlice(LARGE)
|
wts := RandomSlice(large)
|
||||||
benchmarkVariance(b, s, wts)
|
benchmarkVariance(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkVarianceHugeWeighted(b *testing.B) {
|
func BenchmarkVarianceHugeWeighted(b *testing.B) {
|
||||||
s := RandomSlice(HUGE)
|
s := RandomSlice(huge)
|
||||||
wts := RandomSlice(HUGE)
|
wts := RandomSlice(huge)
|
||||||
benchmarkVariance(b, s, wts)
|
benchmarkVariance(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -143,46 +143,46 @@ func benchmarkStdDev(b *testing.B, s, wts []float64) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkStdDevSmall(b *testing.B) {
|
func BenchmarkStdDevSmall(b *testing.B) {
|
||||||
s := RandomSlice(SMALL)
|
s := RandomSlice(small)
|
||||||
benchmarkStdDev(b, s, nil)
|
benchmarkStdDev(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkStdDevMedium(b *testing.B) {
|
func BenchmarkStdDevMedium(b *testing.B) {
|
||||||
s := RandomSlice(MEDIUM)
|
s := RandomSlice(medium)
|
||||||
benchmarkStdDev(b, s, nil)
|
benchmarkStdDev(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkStdDevLarge(b *testing.B) {
|
func BenchmarkStdDevLarge(b *testing.B) {
|
||||||
s := RandomSlice(LARGE)
|
s := RandomSlice(large)
|
||||||
benchmarkStdDev(b, s, nil)
|
benchmarkStdDev(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkStdDevHuge(b *testing.B) {
|
func BenchmarkStdDevHuge(b *testing.B) {
|
||||||
s := RandomSlice(HUGE)
|
s := RandomSlice(huge)
|
||||||
benchmarkStdDev(b, s, nil)
|
benchmarkStdDev(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkStdDevSmallWeighted(b *testing.B) {
|
func BenchmarkStdDevSmallWeighted(b *testing.B) {
|
||||||
s := RandomSlice(SMALL)
|
s := RandomSlice(small)
|
||||||
wts := RandomSlice(SMALL)
|
wts := RandomSlice(small)
|
||||||
benchmarkStdDev(b, s, wts)
|
benchmarkStdDev(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkStdDevMediumWeighted(b *testing.B) {
|
func BenchmarkStdDevMediumWeighted(b *testing.B) {
|
||||||
s := RandomSlice(MEDIUM)
|
s := RandomSlice(medium)
|
||||||
wts := RandomSlice(MEDIUM)
|
wts := RandomSlice(medium)
|
||||||
benchmarkStdDev(b, s, wts)
|
benchmarkStdDev(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkStdDevLargeWeighted(b *testing.B) {
|
func BenchmarkStdDevLargeWeighted(b *testing.B) {
|
||||||
s := RandomSlice(LARGE)
|
s := RandomSlice(large)
|
||||||
wts := RandomSlice(LARGE)
|
wts := RandomSlice(large)
|
||||||
benchmarkStdDev(b, s, wts)
|
benchmarkStdDev(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkStdDevHugeWeighted(b *testing.B) {
|
func BenchmarkStdDevHugeWeighted(b *testing.B) {
|
||||||
s := RandomSlice(HUGE)
|
s := RandomSlice(huge)
|
||||||
wts := RandomSlice(HUGE)
|
wts := RandomSlice(huge)
|
||||||
benchmarkStdDev(b, s, wts)
|
benchmarkStdDev(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -194,46 +194,46 @@ func benchmarkMeanVariance(b *testing.B, s, wts []float64) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanVarianceSmall(b *testing.B) {
|
func BenchmarkMeanVarianceSmall(b *testing.B) {
|
||||||
s := RandomSlice(SMALL)
|
s := RandomSlice(small)
|
||||||
benchmarkMeanVariance(b, s, nil)
|
benchmarkMeanVariance(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanVarianceMedium(b *testing.B) {
|
func BenchmarkMeanVarianceMedium(b *testing.B) {
|
||||||
s := RandomSlice(MEDIUM)
|
s := RandomSlice(medium)
|
||||||
benchmarkMeanVariance(b, s, nil)
|
benchmarkMeanVariance(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanVarianceLarge(b *testing.B) {
|
func BenchmarkMeanVarianceLarge(b *testing.B) {
|
||||||
s := RandomSlice(LARGE)
|
s := RandomSlice(large)
|
||||||
benchmarkMeanVariance(b, s, nil)
|
benchmarkMeanVariance(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanVarianceHuge(b *testing.B) {
|
func BenchmarkMeanVarianceHuge(b *testing.B) {
|
||||||
s := RandomSlice(HUGE)
|
s := RandomSlice(huge)
|
||||||
benchmarkMeanVariance(b, s, nil)
|
benchmarkMeanVariance(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanVarianceSmallWeighted(b *testing.B) {
|
func BenchmarkMeanVarianceSmallWeighted(b *testing.B) {
|
||||||
s := RandomSlice(SMALL)
|
s := RandomSlice(small)
|
||||||
wts := RandomSlice(SMALL)
|
wts := RandomSlice(small)
|
||||||
benchmarkMeanVariance(b, s, wts)
|
benchmarkMeanVariance(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanVarianceMediumWeighted(b *testing.B) {
|
func BenchmarkMeanVarianceMediumWeighted(b *testing.B) {
|
||||||
s := RandomSlice(MEDIUM)
|
s := RandomSlice(medium)
|
||||||
wts := RandomSlice(MEDIUM)
|
wts := RandomSlice(medium)
|
||||||
benchmarkMeanVariance(b, s, wts)
|
benchmarkMeanVariance(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanVarianceLargeWeighted(b *testing.B) {
|
func BenchmarkMeanVarianceLargeWeighted(b *testing.B) {
|
||||||
s := RandomSlice(LARGE)
|
s := RandomSlice(large)
|
||||||
wts := RandomSlice(LARGE)
|
wts := RandomSlice(large)
|
||||||
benchmarkMeanVariance(b, s, wts)
|
benchmarkMeanVariance(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanVarianceHugeWeighted(b *testing.B) {
|
func BenchmarkMeanVarianceHugeWeighted(b *testing.B) {
|
||||||
s := RandomSlice(HUGE)
|
s := RandomSlice(huge)
|
||||||
wts := RandomSlice(HUGE)
|
wts := RandomSlice(huge)
|
||||||
benchmarkMeanVariance(b, s, wts)
|
benchmarkMeanVariance(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -245,46 +245,46 @@ func benchmarkMeanStdDev(b *testing.B, s, wts []float64) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanStdDevSmall(b *testing.B) {
|
func BenchmarkMeanStdDevSmall(b *testing.B) {
|
||||||
s := RandomSlice(SMALL)
|
s := RandomSlice(small)
|
||||||
benchmarkMeanStdDev(b, s, nil)
|
benchmarkMeanStdDev(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanStdDevMedium(b *testing.B) {
|
func BenchmarkMeanStdDevMedium(b *testing.B) {
|
||||||
s := RandomSlice(MEDIUM)
|
s := RandomSlice(medium)
|
||||||
benchmarkMeanStdDev(b, s, nil)
|
benchmarkMeanStdDev(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanStdDevLarge(b *testing.B) {
|
func BenchmarkMeanStdDevLarge(b *testing.B) {
|
||||||
s := RandomSlice(LARGE)
|
s := RandomSlice(large)
|
||||||
benchmarkMeanStdDev(b, s, nil)
|
benchmarkMeanStdDev(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanStdDevHuge(b *testing.B) {
|
func BenchmarkMeanStdDevHuge(b *testing.B) {
|
||||||
s := RandomSlice(HUGE)
|
s := RandomSlice(huge)
|
||||||
benchmarkMeanStdDev(b, s, nil)
|
benchmarkMeanStdDev(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanStdDevSmallWeighted(b *testing.B) {
|
func BenchmarkMeanStdDevSmallWeighted(b *testing.B) {
|
||||||
s := RandomSlice(SMALL)
|
s := RandomSlice(small)
|
||||||
wts := RandomSlice(SMALL)
|
wts := RandomSlice(small)
|
||||||
benchmarkMeanStdDev(b, s, wts)
|
benchmarkMeanStdDev(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanStdDevMediumWeighted(b *testing.B) {
|
func BenchmarkMeanStdDevMediumWeighted(b *testing.B) {
|
||||||
s := RandomSlice(MEDIUM)
|
s := RandomSlice(medium)
|
||||||
wts := RandomSlice(MEDIUM)
|
wts := RandomSlice(medium)
|
||||||
benchmarkMeanStdDev(b, s, wts)
|
benchmarkMeanStdDev(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanStdDevLargeWeighted(b *testing.B) {
|
func BenchmarkMeanStdDevLargeWeighted(b *testing.B) {
|
||||||
s := RandomSlice(LARGE)
|
s := RandomSlice(large)
|
||||||
wts := RandomSlice(LARGE)
|
wts := RandomSlice(large)
|
||||||
benchmarkMeanStdDev(b, s, wts)
|
benchmarkMeanStdDev(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMeanStdDevHugeWeighted(b *testing.B) {
|
func BenchmarkMeanStdDevHugeWeighted(b *testing.B) {
|
||||||
s := RandomSlice(HUGE)
|
s := RandomSlice(huge)
|
||||||
wts := RandomSlice(HUGE)
|
wts := RandomSlice(huge)
|
||||||
benchmarkMeanStdDev(b, s, wts)
|
benchmarkMeanStdDev(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -296,54 +296,54 @@ func benchmarkCovariance(b *testing.B, s1, s2, wts []float64) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCovarianceSmall(b *testing.B) {
|
func BenchmarkCovarianceSmall(b *testing.B) {
|
||||||
s1 := RandomSlice(SMALL)
|
s1 := RandomSlice(small)
|
||||||
s2 := RandomSlice(SMALL)
|
s2 := RandomSlice(small)
|
||||||
benchmarkCovariance(b, s1, s2, nil)
|
benchmarkCovariance(b, s1, s2, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCovarianceMedium(b *testing.B) {
|
func BenchmarkCovarianceMedium(b *testing.B) {
|
||||||
s1 := RandomSlice(MEDIUM)
|
s1 := RandomSlice(medium)
|
||||||
s2 := RandomSlice(MEDIUM)
|
s2 := RandomSlice(medium)
|
||||||
benchmarkCovariance(b, s1, s2, nil)
|
benchmarkCovariance(b, s1, s2, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCovarianceLarge(b *testing.B) {
|
func BenchmarkCovarianceLarge(b *testing.B) {
|
||||||
s1 := RandomSlice(LARGE)
|
s1 := RandomSlice(large)
|
||||||
s2 := RandomSlice(LARGE)
|
s2 := RandomSlice(large)
|
||||||
benchmarkCovariance(b, s1, s2, nil)
|
benchmarkCovariance(b, s1, s2, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCovarianceHuge(b *testing.B) {
|
func BenchmarkCovarianceHuge(b *testing.B) {
|
||||||
s1 := RandomSlice(HUGE)
|
s1 := RandomSlice(huge)
|
||||||
s2 := RandomSlice(HUGE)
|
s2 := RandomSlice(huge)
|
||||||
benchmarkCovariance(b, s1, s2, nil)
|
benchmarkCovariance(b, s1, s2, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCovarianceSmallWeighted(b *testing.B) {
|
func BenchmarkCovarianceSmallWeighted(b *testing.B) {
|
||||||
s1 := RandomSlice(SMALL)
|
s1 := RandomSlice(small)
|
||||||
s2 := RandomSlice(SMALL)
|
s2 := RandomSlice(small)
|
||||||
wts := RandomSlice(SMALL)
|
wts := RandomSlice(small)
|
||||||
benchmarkCovariance(b, s1, s2, wts)
|
benchmarkCovariance(b, s1, s2, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCovarianceMediumWeighted(b *testing.B) {
|
func BenchmarkCovarianceMediumWeighted(b *testing.B) {
|
||||||
s1 := RandomSlice(MEDIUM)
|
s1 := RandomSlice(medium)
|
||||||
s2 := RandomSlice(MEDIUM)
|
s2 := RandomSlice(medium)
|
||||||
wts := RandomSlice(MEDIUM)
|
wts := RandomSlice(medium)
|
||||||
benchmarkCovariance(b, s1, s2, wts)
|
benchmarkCovariance(b, s1, s2, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCovarianceLargeWeighted(b *testing.B) {
|
func BenchmarkCovarianceLargeWeighted(b *testing.B) {
|
||||||
s1 := RandomSlice(LARGE)
|
s1 := RandomSlice(large)
|
||||||
s2 := RandomSlice(LARGE)
|
s2 := RandomSlice(large)
|
||||||
wts := RandomSlice(LARGE)
|
wts := RandomSlice(large)
|
||||||
benchmarkCovariance(b, s1, s2, wts)
|
benchmarkCovariance(b, s1, s2, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCovarianceHugeWeighted(b *testing.B) {
|
func BenchmarkCovarianceHugeWeighted(b *testing.B) {
|
||||||
s1 := RandomSlice(HUGE)
|
s1 := RandomSlice(huge)
|
||||||
s2 := RandomSlice(HUGE)
|
s2 := RandomSlice(huge)
|
||||||
wts := RandomSlice(HUGE)
|
wts := RandomSlice(huge)
|
||||||
benchmarkCovariance(b, s1, s2, wts)
|
benchmarkCovariance(b, s1, s2, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -355,54 +355,54 @@ func benchmarkCorrelation(b *testing.B, s1, s2, wts []float64) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCorrelationSmall(b *testing.B) {
|
func BenchmarkCorrelationSmall(b *testing.B) {
|
||||||
s1 := RandomSlice(SMALL)
|
s1 := RandomSlice(small)
|
||||||
s2 := RandomSlice(SMALL)
|
s2 := RandomSlice(small)
|
||||||
benchmarkCorrelation(b, s1, s2, nil)
|
benchmarkCorrelation(b, s1, s2, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCorrelationMedium(b *testing.B) {
|
func BenchmarkCorrelationMedium(b *testing.B) {
|
||||||
s1 := RandomSlice(MEDIUM)
|
s1 := RandomSlice(medium)
|
||||||
s2 := RandomSlice(MEDIUM)
|
s2 := RandomSlice(medium)
|
||||||
benchmarkCorrelation(b, s1, s2, nil)
|
benchmarkCorrelation(b, s1, s2, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCorrelationLarge(b *testing.B) {
|
func BenchmarkCorrelationLarge(b *testing.B) {
|
||||||
s1 := RandomSlice(LARGE)
|
s1 := RandomSlice(large)
|
||||||
s2 := RandomSlice(LARGE)
|
s2 := RandomSlice(large)
|
||||||
benchmarkCorrelation(b, s1, s2, nil)
|
benchmarkCorrelation(b, s1, s2, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCorrelationHuge(b *testing.B) {
|
func BenchmarkCorrelationHuge(b *testing.B) {
|
||||||
s1 := RandomSlice(HUGE)
|
s1 := RandomSlice(huge)
|
||||||
s2 := RandomSlice(HUGE)
|
s2 := RandomSlice(huge)
|
||||||
benchmarkCorrelation(b, s1, s2, nil)
|
benchmarkCorrelation(b, s1, s2, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCorrelationSmallWeighted(b *testing.B) {
|
func BenchmarkCorrelationSmallWeighted(b *testing.B) {
|
||||||
s1 := RandomSlice(SMALL)
|
s1 := RandomSlice(small)
|
||||||
s2 := RandomSlice(SMALL)
|
s2 := RandomSlice(small)
|
||||||
wts := RandomSlice(SMALL)
|
wts := RandomSlice(small)
|
||||||
benchmarkCorrelation(b, s1, s2, wts)
|
benchmarkCorrelation(b, s1, s2, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCorrelationMediumWeighted(b *testing.B) {
|
func BenchmarkCorrelationMediumWeighted(b *testing.B) {
|
||||||
s1 := RandomSlice(MEDIUM)
|
s1 := RandomSlice(medium)
|
||||||
s2 := RandomSlice(MEDIUM)
|
s2 := RandomSlice(medium)
|
||||||
wts := RandomSlice(MEDIUM)
|
wts := RandomSlice(medium)
|
||||||
benchmarkCorrelation(b, s1, s2, wts)
|
benchmarkCorrelation(b, s1, s2, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCorrelationLargeWeighted(b *testing.B) {
|
func BenchmarkCorrelationLargeWeighted(b *testing.B) {
|
||||||
s1 := RandomSlice(LARGE)
|
s1 := RandomSlice(large)
|
||||||
s2 := RandomSlice(LARGE)
|
s2 := RandomSlice(large)
|
||||||
wts := RandomSlice(LARGE)
|
wts := RandomSlice(large)
|
||||||
benchmarkCorrelation(b, s1, s2, wts)
|
benchmarkCorrelation(b, s1, s2, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCorrelationHugeWeighted(b *testing.B) {
|
func BenchmarkCorrelationHugeWeighted(b *testing.B) {
|
||||||
s1 := RandomSlice(HUGE)
|
s1 := RandomSlice(huge)
|
||||||
s2 := RandomSlice(HUGE)
|
s2 := RandomSlice(huge)
|
||||||
wts := RandomSlice(HUGE)
|
wts := RandomSlice(huge)
|
||||||
benchmarkCorrelation(b, s1, s2, wts)
|
benchmarkCorrelation(b, s1, s2, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -414,46 +414,46 @@ func benchmarkSkew(b *testing.B, s, wts []float64) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkSkewSmall(b *testing.B) {
|
func BenchmarkSkewSmall(b *testing.B) {
|
||||||
s := RandomSlice(SMALL)
|
s := RandomSlice(small)
|
||||||
benchmarkSkew(b, s, nil)
|
benchmarkSkew(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkSkewMedium(b *testing.B) {
|
func BenchmarkSkewMedium(b *testing.B) {
|
||||||
s := RandomSlice(MEDIUM)
|
s := RandomSlice(medium)
|
||||||
benchmarkSkew(b, s, nil)
|
benchmarkSkew(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkSkewLarge(b *testing.B) {
|
func BenchmarkSkewLarge(b *testing.B) {
|
||||||
s := RandomSlice(LARGE)
|
s := RandomSlice(large)
|
||||||
benchmarkSkew(b, s, nil)
|
benchmarkSkew(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkSkewHuge(b *testing.B) {
|
func BenchmarkSkewHuge(b *testing.B) {
|
||||||
s := RandomSlice(HUGE)
|
s := RandomSlice(huge)
|
||||||
benchmarkSkew(b, s, nil)
|
benchmarkSkew(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkSkewSmallWeighted(b *testing.B) {
|
func BenchmarkSkewSmallWeighted(b *testing.B) {
|
||||||
s := RandomSlice(SMALL)
|
s := RandomSlice(small)
|
||||||
wts := RandomSlice(SMALL)
|
wts := RandomSlice(small)
|
||||||
benchmarkSkew(b, s, wts)
|
benchmarkSkew(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkSkewMediumWeighted(b *testing.B) {
|
func BenchmarkSkewMediumWeighted(b *testing.B) {
|
||||||
s := RandomSlice(MEDIUM)
|
s := RandomSlice(medium)
|
||||||
wts := RandomSlice(MEDIUM)
|
wts := RandomSlice(medium)
|
||||||
benchmarkSkew(b, s, wts)
|
benchmarkSkew(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkSkewLargeWeighted(b *testing.B) {
|
func BenchmarkSkewLargeWeighted(b *testing.B) {
|
||||||
s := RandomSlice(LARGE)
|
s := RandomSlice(large)
|
||||||
wts := RandomSlice(LARGE)
|
wts := RandomSlice(large)
|
||||||
benchmarkSkew(b, s, wts)
|
benchmarkSkew(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkSkewHugeWeighted(b *testing.B) {
|
func BenchmarkSkewHugeWeighted(b *testing.B) {
|
||||||
s := RandomSlice(HUGE)
|
s := RandomSlice(huge)
|
||||||
wts := RandomSlice(HUGE)
|
wts := RandomSlice(huge)
|
||||||
benchmarkSkew(b, s, wts)
|
benchmarkSkew(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -465,46 +465,46 @@ func benchmarkExKurtosis(b *testing.B, s, wts []float64) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkExKurtosisSmall(b *testing.B) {
|
func BenchmarkExKurtosisSmall(b *testing.B) {
|
||||||
s := RandomSlice(SMALL)
|
s := RandomSlice(small)
|
||||||
benchmarkExKurtosis(b, s, nil)
|
benchmarkExKurtosis(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkExKurtosisMedium(b *testing.B) {
|
func BenchmarkExKurtosisMedium(b *testing.B) {
|
||||||
s := RandomSlice(MEDIUM)
|
s := RandomSlice(medium)
|
||||||
benchmarkExKurtosis(b, s, nil)
|
benchmarkExKurtosis(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkExKurtosisLarge(b *testing.B) {
|
func BenchmarkExKurtosisLarge(b *testing.B) {
|
||||||
s := RandomSlice(LARGE)
|
s := RandomSlice(large)
|
||||||
benchmarkExKurtosis(b, s, nil)
|
benchmarkExKurtosis(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkExKurtosisHuge(b *testing.B) {
|
func BenchmarkExKurtosisHuge(b *testing.B) {
|
||||||
s := RandomSlice(HUGE)
|
s := RandomSlice(huge)
|
||||||
benchmarkExKurtosis(b, s, nil)
|
benchmarkExKurtosis(b, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkExKurtosisSmallWeighted(b *testing.B) {
|
func BenchmarkExKurtosisSmallWeighted(b *testing.B) {
|
||||||
s := RandomSlice(SMALL)
|
s := RandomSlice(small)
|
||||||
wts := RandomSlice(SMALL)
|
wts := RandomSlice(small)
|
||||||
benchmarkExKurtosis(b, s, wts)
|
benchmarkExKurtosis(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkExKurtosisMediumWeighted(b *testing.B) {
|
func BenchmarkExKurtosisMediumWeighted(b *testing.B) {
|
||||||
s := RandomSlice(MEDIUM)
|
s := RandomSlice(medium)
|
||||||
wts := RandomSlice(MEDIUM)
|
wts := RandomSlice(medium)
|
||||||
benchmarkExKurtosis(b, s, wts)
|
benchmarkExKurtosis(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkExKurtosisLargeWeighted(b *testing.B) {
|
func BenchmarkExKurtosisLargeWeighted(b *testing.B) {
|
||||||
s := RandomSlice(LARGE)
|
s := RandomSlice(large)
|
||||||
wts := RandomSlice(LARGE)
|
wts := RandomSlice(large)
|
||||||
benchmarkExKurtosis(b, s, wts)
|
benchmarkExKurtosis(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkExKurtosisHugeWeighted(b *testing.B) {
|
func BenchmarkExKurtosisHugeWeighted(b *testing.B) {
|
||||||
s := RandomSlice(HUGE)
|
s := RandomSlice(huge)
|
||||||
wts := RandomSlice(HUGE)
|
wts := RandomSlice(huge)
|
||||||
benchmarkExKurtosis(b, s, wts)
|
benchmarkExKurtosis(b, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -516,46 +516,46 @@ func benchmarkMoment(b *testing.B, n float64, s, wts []float64) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMomentSmall(b *testing.B) {
|
func BenchmarkMomentSmall(b *testing.B) {
|
||||||
s := RandomSlice(SMALL)
|
s := RandomSlice(small)
|
||||||
benchmarkMoment(b, 5, s, nil)
|
benchmarkMoment(b, 5, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMomentMedium(b *testing.B) {
|
func BenchmarkMomentMedium(b *testing.B) {
|
||||||
s := RandomSlice(MEDIUM)
|
s := RandomSlice(medium)
|
||||||
benchmarkMoment(b, 5, s, nil)
|
benchmarkMoment(b, 5, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMomentLarge(b *testing.B) {
|
func BenchmarkMomentLarge(b *testing.B) {
|
||||||
s := RandomSlice(LARGE)
|
s := RandomSlice(large)
|
||||||
benchmarkMoment(b, 5, s, nil)
|
benchmarkMoment(b, 5, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMomentHuge(b *testing.B) {
|
func BenchmarkMomentHuge(b *testing.B) {
|
||||||
s := RandomSlice(HUGE)
|
s := RandomSlice(huge)
|
||||||
benchmarkMoment(b, 5, s, nil)
|
benchmarkMoment(b, 5, s, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMomentSmallWeighted(b *testing.B) {
|
func BenchmarkMomentSmallWeighted(b *testing.B) {
|
||||||
s := RandomSlice(SMALL)
|
s := RandomSlice(small)
|
||||||
wts := RandomSlice(SMALL)
|
wts := RandomSlice(small)
|
||||||
benchmarkMoment(b, 5, s, wts)
|
benchmarkMoment(b, 5, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMomentMediumWeighted(b *testing.B) {
|
func BenchmarkMomentMediumWeighted(b *testing.B) {
|
||||||
s := RandomSlice(MEDIUM)
|
s := RandomSlice(medium)
|
||||||
wts := RandomSlice(MEDIUM)
|
wts := RandomSlice(medium)
|
||||||
benchmarkMoment(b, 5, s, wts)
|
benchmarkMoment(b, 5, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMomentLargeWeighted(b *testing.B) {
|
func BenchmarkMomentLargeWeighted(b *testing.B) {
|
||||||
s := RandomSlice(LARGE)
|
s := RandomSlice(large)
|
||||||
wts := RandomSlice(LARGE)
|
wts := RandomSlice(large)
|
||||||
benchmarkMoment(b, 5, s, wts)
|
benchmarkMoment(b, 5, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMomentHugeWeighted(b *testing.B) {
|
func BenchmarkMomentHugeWeighted(b *testing.B) {
|
||||||
s := RandomSlice(HUGE)
|
s := RandomSlice(huge)
|
||||||
wts := RandomSlice(HUGE)
|
wts := RandomSlice(huge)
|
||||||
benchmarkMoment(b, 5, s, wts)
|
benchmarkMoment(b, 5, s, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -567,45 +567,45 @@ func benchmarkMomentAbout(b *testing.B, n float64, s []float64, mean float64, wt
|
|||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMomentAboutSmall(b *testing.B) {
|
func BenchmarkMomentAboutSmall(b *testing.B) {
|
||||||
s := RandomSlice(SMALL)
|
s := RandomSlice(small)
|
||||||
benchmarkMomentAbout(b, 5, s, 0, nil)
|
benchmarkMomentAbout(b, 5, s, 0, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMomentAboutMedium(b *testing.B) {
|
func BenchmarkMomentAboutMedium(b *testing.B) {
|
||||||
s := RandomSlice(MEDIUM)
|
s := RandomSlice(medium)
|
||||||
benchmarkMomentAbout(b, 5, s, 0, nil)
|
benchmarkMomentAbout(b, 5, s, 0, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMomentAboutLarge(b *testing.B) {
|
func BenchmarkMomentAboutLarge(b *testing.B) {
|
||||||
s := RandomSlice(LARGE)
|
s := RandomSlice(large)
|
||||||
benchmarkMomentAbout(b, 5, s, 0, nil)
|
benchmarkMomentAbout(b, 5, s, 0, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMomentAboutHuge(b *testing.B) {
|
func BenchmarkMomentAboutHuge(b *testing.B) {
|
||||||
s := RandomSlice(HUGE)
|
s := RandomSlice(huge)
|
||||||
benchmarkMomentAbout(b, 5, s, 0, nil)
|
benchmarkMomentAbout(b, 5, s, 0, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMomentAboutSmallWeighted(b *testing.B) {
|
func BenchmarkMomentAboutSmallWeighted(b *testing.B) {
|
||||||
s := RandomSlice(SMALL)
|
s := RandomSlice(small)
|
||||||
wts := RandomSlice(SMALL)
|
wts := RandomSlice(small)
|
||||||
benchmarkMomentAbout(b, 5, s, 0, wts)
|
benchmarkMomentAbout(b, 5, s, 0, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMomentAboutMediumWeighted(b *testing.B) {
|
func BenchmarkMomentAboutMediumWeighted(b *testing.B) {
|
||||||
s := RandomSlice(MEDIUM)
|
s := RandomSlice(medium)
|
||||||
wts := RandomSlice(MEDIUM)
|
wts := RandomSlice(medium)
|
||||||
benchmarkMomentAbout(b, 5, s, 0, wts)
|
benchmarkMomentAbout(b, 5, s, 0, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMomentAboutLargeWeighted(b *testing.B) {
|
func BenchmarkMomentAboutLargeWeighted(b *testing.B) {
|
||||||
s := RandomSlice(LARGE)
|
s := RandomSlice(large)
|
||||||
wts := RandomSlice(LARGE)
|
wts := RandomSlice(large)
|
||||||
benchmarkMomentAbout(b, 5, s, 0, wts)
|
benchmarkMomentAbout(b, 5, s, 0, wts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkMomentAboutHugeWeighted(b *testing.B) {
|
func BenchmarkMomentAboutHugeWeighted(b *testing.B) {
|
||||||
s := RandomSlice(HUGE)
|
s := RandomSlice(huge)
|
||||||
wts := RandomSlice(HUGE)
|
wts := RandomSlice(huge)
|
||||||
benchmarkMomentAbout(b, 5, s, 0, wts)
|
benchmarkMomentAbout(b, 5, s, 0, wts)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user