benchmark: png encoding with z=1 to ensure we're testing hextree not zlib

This commit is contained in:
Dane Springmeyer 2014-05-05 10:07:57 -07:00
parent ab7fc55535
commit 7158df8b08
2 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ public:
std::string out;
for (std::size_t i=0;i<iterations_;++i) {
out.clear();
out = mapnik::save_to_string(im_,"png8:m=h");
out = mapnik::save_to_string(im_,"png8:m=h:z=1");
}
}
};

View file

@ -20,7 +20,7 @@ public:
{
std::string expected("./benchmark/data/multicolor-hextree-expected.png");
std::string actual("./benchmark/data/multicolor-hextree-actual.png");
mapnik::save_to_file(im_->data(),actual, "png8:m=h");
mapnik::save_to_file(im_->data(),actual, "png8:m=h:z=1");
return benchmark::compare_images(actual,expected);
}
void operator()() const
@ -28,7 +28,7 @@ public:
std::string out;
for (std::size_t i=0;i<iterations_;++i) {
out.clear();
out = mapnik::save_to_string(im_->data(),"png8:m=h");
out = mapnik::save_to_string(im_->data(),"png8:m=h:z=1");
}
}
};