github.com/gopherd/gonum@v0.0.4/blas/gonum/dgemvbench_test.go (about)

     1  // Copyright ©2015 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  	"github.com/gopherd/gonum/blas/testblas"
    11  )
    12  
    13  func BenchmarkDgemvSmSmNoTransInc1(b *testing.B) {
    14  	testblas.DgemvBenchmark(b, impl, NT, Sm, Sm, 1, 1)
    15  }
    16  
    17  func BenchmarkDgemvSmSmNoTransIncN(b *testing.B) {
    18  	testblas.DgemvBenchmark(b, impl, NT, Sm, Sm, 2, 3)
    19  }
    20  
    21  func BenchmarkDgemvSmSmTransInc1(b *testing.B) {
    22  	testblas.DgemvBenchmark(b, impl, T, Sm, Sm, 1, 1)
    23  }
    24  
    25  func BenchmarkDgemvSmSmTransIncN(b *testing.B) {
    26  	testblas.DgemvBenchmark(b, impl, T, Sm, Sm, 2, 3)
    27  }
    28  
    29  func BenchmarkDgemvMedMedNoTransInc1(b *testing.B) {
    30  	testblas.DgemvBenchmark(b, impl, NT, Med, Med, 1, 1)
    31  }
    32  
    33  func BenchmarkDgemvMedMedNoTransIncN(b *testing.B) {
    34  	testblas.DgemvBenchmark(b, impl, NT, Med, Med, 2, 3)
    35  }
    36  
    37  func BenchmarkDgemvMedMedTransInc1(b *testing.B) {
    38  	testblas.DgemvBenchmark(b, impl, T, Med, Med, 1, 1)
    39  }
    40  
    41  func BenchmarkDgemvMedMedTransIncN(b *testing.B) {
    42  	testblas.DgemvBenchmark(b, impl, T, Med, Med, 2, 3)
    43  }
    44  
    45  func BenchmarkDgemvLgLgNoTransInc1(b *testing.B) {
    46  	testblas.DgemvBenchmark(b, impl, NT, Lg, Lg, 1, 1)
    47  }
    48  
    49  func BenchmarkDgemvLgLgNoTransIncN(b *testing.B) {
    50  	testblas.DgemvBenchmark(b, impl, NT, Lg, Lg, 2, 3)
    51  }
    52  
    53  func BenchmarkDgemvLgLgTransInc1(b *testing.B) {
    54  	testblas.DgemvBenchmark(b, impl, T, Lg, Lg, 1, 1)
    55  }
    56  
    57  func BenchmarkDgemvLgLgTransIncN(b *testing.B) {
    58  	testblas.DgemvBenchmark(b, impl, T, Lg, Lg, 2, 3)
    59  }
    60  
    61  func BenchmarkDgemvLgSmNoTransInc1(b *testing.B) {
    62  	testblas.DgemvBenchmark(b, impl, NT, Lg, Sm, 1, 1)
    63  }
    64  
    65  func BenchmarkDgemvLgSmNoTransIncN(b *testing.B) {
    66  	testblas.DgemvBenchmark(b, impl, NT, Lg, Sm, 2, 3)
    67  }
    68  
    69  func BenchmarkDgemvLgSmTransInc1(b *testing.B) {
    70  	testblas.DgemvBenchmark(b, impl, T, Lg, Sm, 1, 1)
    71  }
    72  
    73  func BenchmarkDgemvLgSmTransIncN(b *testing.B) {
    74  	testblas.DgemvBenchmark(b, impl, T, Lg, Sm, 2, 3)
    75  }
    76  
    77  func BenchmarkDgemvSmLgNoTransInc1(b *testing.B) {
    78  	testblas.DgemvBenchmark(b, impl, NT, Sm, Lg, 1, 1)
    79  }
    80  
    81  func BenchmarkDgemvSmLgNoTransIncN(b *testing.B) {
    82  	testblas.DgemvBenchmark(b, impl, NT, Sm, Lg, 2, 3)
    83  }
    84  
    85  func BenchmarkDgemvSmLgTransInc1(b *testing.B) {
    86  	testblas.DgemvBenchmark(b, impl, T, Sm, Lg, 1, 1)
    87  }
    88  
    89  func BenchmarkDgemvSmLgTransIncN(b *testing.B) {
    90  	testblas.DgemvBenchmark(b, impl, T, Sm, Lg, 2, 3)
    91  }