Commit 8f5803f1 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Benchmarks: all results are written in scientific format to avoid precision loss

parent a0af8b32
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ struct SpmvBenchmarkResult

   virtual std::vector< int > getColumnWidthHints() const override
   {
      return std::vector< int >({ 12, 12, 14, 12, 12, 14, 14 });
      return std::vector< int >({ 14, 14, 14, 14, 14, 14, 14 });
   }

   virtual RowElements getRowElements() const override
@@ -58,7 +58,8 @@ struct SpmvBenchmarkResult
      benchmarkResultCopy = benchmarkResult;
      auto diff = csrResult - benchmarkResultCopy;
      RowElements elements;
      elements << time << stddev << stddev/time << bandwidth;
      // write in scientific format to avoid precision loss
      elements << std::scientific << time << stddev << stddev/time << bandwidth;
      if( speedup != 0.0 )
         elements << speedup;
      else
+3 −2
Original line number Diff line number Diff line
@@ -43,13 +43,14 @@ struct BenchmarkResult

   virtual std::vector< int > getColumnWidthHints() const
   {
      return std::vector< int >({ 8, 8, 8, 8, 8 });
      return std::vector< int >({ 14, 14, 14, 14, 14 });
   }

   virtual RowElements getRowElements() const
   {
      RowElements elements;
      elements << time << stddev << stddev / time << bandwidth;
      // write in scientific format to avoid precision loss
      elements << std::scientific << time << stddev << stddev / time << bandwidth;
      if( speedup != 0 )
         elements << speedup;
      else