Commit e8bfeffb authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Benchmarks: switch to JSON by default and adjust metadata column widths appropriately

parent 1c3b49b4
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -35,6 +35,12 @@ runBlasBenchmarks( Benchmark<> & benchmark,
                   const std::size_t & maxSize,
                   const double & sizeStepFactor )
{
   benchmark.setMetadataWidths({
      { "operation", 30 },
      { "performer", 21 },
      { "precision", 10 },
   });

   // Array operations
   std::cout << "\n== Array operations ==\n" << std::endl;
   for( std::size_t size = minSize; size <= maxSize; size *= 2 ) {
+1 −1
Original line number Diff line number Diff line
@@ -738,7 +738,7 @@ benchmarkSpmv( BenchmarkType& benchmark,
   });
   benchmark.setMetadataWidths({
      { "matrix name", 32 },
      { "format", 35 },
      { "format", 46 },
   });

   HostVector hostInVector( csrHostMatrix.getRows() ), hostOutVector( csrHostMatrix.getRows() );
+2 −2
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@

#pragma once

#include "CustomLogging.h"
#include "JsonLogging.h"

#include <limits>

@@ -59,7 +59,7 @@ struct BenchmarkResult
   }
};

template< typename Logger = CustomLogging >
template< typename Logger = JsonLogging >
class Benchmark
{
   public: