gonum.org/v1/gonum@v0.14.0/blas/gonum/dgemmbench_test.go (about)

     1  // Copyright ©2014 The Gonum Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package gonum
     6  
     7  import (
     8  	"testing"
     9  
    10  	"gonum.org/v1/gonum/blas/testblas"
    11  )
    12  
    13  func BenchmarkDgemmSmSmSm(b *testing.B) {
    14  	testblas.DgemmBenchmark(b, impl, Sm, Sm, Sm, NT, NT)
    15  }
    16  
    17  func BenchmarkDgemmMedMedMed(b *testing.B) {
    18  	testblas.DgemmBenchmark(b, impl, Med, Med, Med, NT, NT)
    19  }
    20  
    21  func BenchmarkDgemmMedLgMed(b *testing.B) {
    22  	testblas.DgemmBenchmark(b, impl, Med, Lg, Med, NT, NT)
    23  }
    24  
    25  func BenchmarkDgemmLgLgLg(b *testing.B) {
    26  	testblas.DgemmBenchmark(b, impl, Lg, Lg, Lg, NT, NT)
    27  }
    28  
    29  func BenchmarkDgemmLgSmLg(b *testing.B) {
    30  	testblas.DgemmBenchmark(b, impl, Lg, Sm, Lg, NT, NT)
    31  }
    32  
    33  func BenchmarkDgemmLgLgSm(b *testing.B) {
    34  	testblas.DgemmBenchmark(b, impl, Lg, Lg, Sm, NT, NT)
    35  }
    36  
    37  func BenchmarkDgemmHgHgSm(b *testing.B) {
    38  	testblas.DgemmBenchmark(b, impl, Hg, Hg, Sm, NT, NT)
    39  }
    40  
    41  func BenchmarkDgemmMedMedMedTNT(b *testing.B) {
    42  	testblas.DgemmBenchmark(b, impl, Med, Med, Med, T, NT)
    43  }
    44  
    45  func BenchmarkDgemmMedMedMedNTT(b *testing.B) {
    46  	testblas.DgemmBenchmark(b, impl, Med, Med, Med, NT, T)
    47  }
    48  
    49  func BenchmarkDgemmMedMedMedTT(b *testing.B) {
    50  	testblas.DgemmBenchmark(b, impl, Med, Med, Med, T, T)
    51  }