[gegl] perf: remove duplicate tests



commit d7c530c3cb1bd20eb651c89d51a412f8d8dd3456
Author: Øyvind Kolås <pippin gimp org>
Date:   Fri Jun 20 09:41:15 2014 +0200

    perf: remove duplicate tests

 perf/Makefile-retrospect       |    2 +-
 perf/test-gegl-buffer-access.c |   38 --------------------------------------
 perf/test-samplers.c           |   36 ------------------------------------
 3 files changed, 1 insertions(+), 75 deletions(-)
---
diff --git a/perf/Makefile-retrospect b/perf/Makefile-retrospect
index b3bbda0..03da28d 100644
--- a/perf/Makefile-retrospect
+++ b/perf/Makefile-retrospect
@@ -45,7 +45,7 @@ random:
 
 
 reports/%:
-       (cd checkout; git checkout `echo $@|sed s:reports/::` || ( cd .. ; rm -rf checkout ;  git clone -s 
$(PROJECT_PATH) checkout ; git checkout `echo $@|sed s:reports/::` ))
+       (cd checkout; git checkout `echo $@|sed s:reports/::` || ( cd .. ; rm -rf checkout ;  git clone -s 
$(PROJECT_PATH) checkout ; cd checkout; git checkout `echo $@|sed s:reports/::` ))
        # write header for report
        git log -1 `echo $@|sed s:reports/::` > $@  || true 
        # make sure revision is built, and current prefix symlink
diff --git a/perf/test-gegl-buffer-access.c b/perf/test-gegl-buffer-access.c
index a586d3b..a201af6 100644
--- a/perf/test-gegl-buffer-access.c
+++ b/perf/test-gegl-buffer-access.c
@@ -102,44 +102,6 @@ main (gint    argc,
   }
   test_end ("gegl_buffer_sample nearest", SAMPLES * ITERATIONS * BPP);
 
-  test_start ();
-  for (i = 0; i < ITERATIONS; i++)
-  {
-    int j;
-    float px[4] = {0.2, 0.4, 0.1, 0.5};
-    GeglSampler *sampler = gegl_buffer_sampler_new (buffer, format, 
-                                                    GEGL_SAMPLER_NEAREST);
-
-    for (j = 0; j < SAMPLES; j ++)
-    {
-      int x = rands[j*2];
-      int y = rands[j*2+1];
-      gegl_sampler_get (sampler, x, y, NULL, (void*)&px[0], GEGL_ABYSS_NONE);
-    }
-
-    g_object_unref (sampler);
-  }
-  test_end ("gegl_sampler_get nearest", SAMPLES * ITERATIONS * BPP);
-
-  test_start ();
-  for (i = 0; i < ITERATIONS; i++)
-  {
-    int j;
-    float px[4] = {0.2, 0.4, 0.1, 0.5};
-    GeglSampler *sampler = gegl_buffer_sampler_new (buffer, format, 
-                                                    GEGL_SAMPLER_NEAREST);
-    GeglSamplerGetFun sampler_get_fun = gegl_sampler_get_fun (sampler);
-
-    for (j = 0; j < SAMPLES; j ++)
-    {
-      int x = rands[j*2];
-      int y = rands[j*2+1];
-      sampler_get_fun (sampler, x, y, NULL, (void*)&px[0], GEGL_ABYSS_NONE);
-    }
-
-    g_object_unref (sampler);
-  }
-  test_end ("sampler_get_fun nearest", SAMPLES * ITERATIONS * BPP);
   }
 
   g_free (buf);
diff --git a/perf/test-samplers.c b/perf/test-samplers.c
index e8b45ad..08bfddc 100644
--- a/perf/test-samplers.c
+++ b/perf/test-samplers.c
@@ -40,42 +40,6 @@ main (gint    argc,
   for (i = 0; i < ITERATIONS; i++)
   {
     int j;
-    for (j = 0; j < SAMPLES; j ++)
-    {
-      int x = rands[j*2];
-      int y = rands[j*2+1];
-      float px[4] = {0.2, 0.4, 0.1, 0.5};
-#if 1
-      GeglRectangle rect = {x, y, 1, 1};
-      gegl_buffer_set (buffer, &rect, 0, format, (void*)&px[0], GEGL_AUTO_ROWSTRIDE);
-#else
-      gegl_buffer_set_pixel (buffer, x, y, format, (void*)&px[0], 3);
-#endif
-    }
-  }
-  test_end ("gegl_buffer_set 1x1", SAMPLES * ITERATIONS * BPP);
-
-  test_start ();
-  for (i = 0; i < ITERATIONS; i++)
-  {
-    int j;
-    float px[4] = {0.2, 0.4, 0.1, 0.5};
-    for (j = 0; j < SAMPLES; j ++)
-    {
-      int x = rands[j*2];
-      int y = rands[j*2+1];
-      GeglRectangle rect = {x, y, 1, 1};
-      gegl_buffer_get (buffer, &rect, 1.0, format, (void*)&px[0],
-                       GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
-    }
-  }
-  test_end ("gegl_buffer_get 1x1", SAMPLES * ITERATIONS * BPP);
-
-
-  test_start ();
-  for (i = 0; i < ITERATIONS; i++)
-  {
-    int j;
     float px[4] = {0.2, 0.4, 0.1, 0.5};
     for (j = 0; j < SAMPLES; j ++)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]