into bench subdirectory.
errep.perl
regops.perl
spot.perl For making an ordered dither matrix from a spot function
-transbench.perl
transform.perl Shell interface to Imager::Transform
bigtest.perl Library selection tester
dynfilt/pluginst.h
dynfilt/flines.c
dynfilt/compile.txt
dynfilt/Makefile.PL
-bench/quantone.perl One round of benchmarking image quantization.
-bench/quantbench.perl Benchmark various quantization methods
-bench/makegrad.perl Builds regular images for quantization.
-bench/kscdisplay.png Photo test for quantization.
-bench/benchform.perl Formats the benchmark results
--- /dev/null
+#!perl -w
+use Imager;
+use Benchmark;
+
+$img = Imager->new();
+$img->open(file=>'testimg/penguin-base.jpg', type=>'jpeg')
+ || die "Cannot open penguin-base.jpg";
+
+timethese(-10,
+ { old=><<'EOS',
+$im2 = $img->transform(xexpr=>'x', yexpr=>'y+10*sin((x+y)/10)');
+EOS
+ new=><<'EOS'
+$im2 = Imager::transform2({rpnexpr=>'x y 10 x y + 10 / sin * + getp1'}, $img);
+EOS
+}
+);
+timethese(-10,
+ { old=><<'EOS',
+$im2 = $img->transform(xexpr=>'x', yexpr=>'y+(x+y)/10');
+EOS
+ new=><<'EOS'
+$im2 = Imager::transform2({rpnexpr=>'x y x y + 10 / + getp1'}, $img);
+EOS
+}
+);
+
+++ /dev/null
-#!perl -w
-use Imager;
-use Benchmark;
-
-$img = Imager->new();
-$img->open(file=>'testimg/penguin-base.jpg', type=>'jpeg')
- || die "Cannot open penguin-base.jpg";
-
-timethese(-10,
- { old=><<'EOS',
-$im2 = $img->transform(xexpr=>'x', yexpr=>'y+10*sin((x+y)/10)');
-EOS
- new=><<'EOS'
-$im2 = Imager::transform2({rpnexpr=>'x y 10 x y + 10 / sin * + getp1'}, $img);
-EOS
-}
-);
-timethese(-10,
- { old=><<'EOS',
-$im2 = $img->transform(xexpr=>'x', yexpr=>'y+(x+y)/10');
-EOS
- new=><<'EOS'
-$im2 = Imager::transform2({rpnexpr=>'x y x y + 10 / + getp1'}, $img);
-EOS
-}
-);
-