chiark / gitweb /
Rip out original benchmarker
authorRoss Younger <onyx-commits@impropriety.org.uk>
Thu, 4 Apr 2013 10:01:34 +0000 (23:01 +1300)
committerRoss Younger <onyx-commits@impropriety.org.uk>
Thu, 4 Apr 2013 10:01:34 +0000 (23:01 +1300)
benchmark/benchmark.cpp [deleted file]

diff --git a/benchmark/benchmark.cpp b/benchmark/benchmark.cpp
deleted file mode 100644 (file)
index cca4653..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*  benchmark.cpp: brot2 basic benchmark suite
-    Copyright (C) 2013 Ross Younger
-
-    This program is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#include "Fractal.h"
-#include <hayai/hayai.hpp>
-#include "Exception.h"
-
-using namespace Fractal;
-
-class FractalBM : public Hayai::Fixture
-{
-public:
-       FractalImpl *impl;
-       Point coords;
-       PointData data;
-
-       virtual void SetUp() {
-               FractalCommon::load_base();
-               impl = FractalCommon::registry.get("Mandelbrot");
-               if (impl==0) THROW(BrotFatalException, "Cannot find my fractal!");
-
-               /* A point (found by experiment) that's in the set but not
-                * in the special-case cut-off regions */
-               coords = { -0.1586536, 1.034804 };
-               // coords = { -1.563, -0.0625 }; // Mandeldrop
-}
-
-       void doit(Maths::MathsType ty) {
-               impl->prepare_pixel(coords, data);
-               impl->plot_pixel(1048576, data, ty);
-               /* Note that plot_pixel converts the point data from the base type
-                * to the templated type - but only once per call. */
-       }
-};
-
-#define DO_BENCHMARK(type,name,minpix) \
-BENCHMARK_F(FractalBM, name, 10, 16) {         \
-       doit(Maths::MathsType::name);           \
-}
-
-ALL_MATHS_TYPES(DO_BENCHMARK)