projects
/
imager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c064d0
)
simple benchmark for image copying
author
Tony Cook
<tony@develop=help.com>
Sun, 6 May 2001 07:33:15 +0000
(07:33 +0000)
committer
Tony Cook
<tony@develop=help.com>
Sun, 6 May 2001 07:33:15 +0000
(07:33 +0000)
bench/copy.bench
[new file with mode: 0644]
patch
|
blob
diff --git a/bench/copy.bench
b/bench/copy.bench
new file mode 100644
(file)
index 0000000..
045fc46
--- /dev/null
+++ b/
bench/copy.bench
@@ -0,0
+1,10
@@
+#!perl -w
+use Imager qw(:all);
+use Benchmark;
+
+# a basic benchmark to test how much faster it is to work line by line
+$im1 = Imager::ImgRaw::new(200,200,3);
+$im2 = Imager::ImgRaw::new(200,200,3);
+
+timethese(-5,
+ { copy => 'Imager::i_copy($im2, $im1)' });