summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-18 00:20:32 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-18 00:20:32 +0300
commita9efd6f7d46f58861d98e6546b65b35a09cb0d1a (patch)
treedac2a782e9345b9b5a0bfd831c7e35a78e8e879f /src/test
parent68f2bfcadd044840dbd42b8fd114a41588019f09 (diff)
downloadmv-a9efd6f7d46f58861d98e6546b65b35a09cb0d1a.tar.gz
mv-a9efd6f7d46f58861d98e6546b65b35a09cb0d1a.tar.bz2
mv-a9efd6f7d46f58861d98e6546b65b35a09cb0d1a.tar.xz
mv-a9efd6f7d46f58861d98e6546b65b35a09cb0d1a.zip
Improve dye speed test.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/testlauncher.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/testlauncher.cpp b/src/test/testlauncher.cpp
index 7c01402a8..eacbcbc6e 100644
--- a/src/test/testlauncher.cpp
+++ b/src/test/testlauncher.cpp
@@ -490,9 +490,11 @@ int TestLauncher::testDyeSpeed()
for (int f = 0; f < sz; f ++)
buf[f] = f;
+ pal.replaceSColor(buf, sz);
+
clock_gettime(CLOCK_MONOTONIC, &time1);
- for (int f = 0; f < 1000; f ++)
+ for (int f = 0; f < 50000; f ++)
pal.replaceSColor(buf, sz);
clock_gettime(CLOCK_MONOTONIC, &time2);
@@ -500,6 +502,7 @@ int TestLauncher::testDyeSpeed()
+ static_cast<long int>(time2.tv_nsec)) / 1) -
((static_cast<long int>(time1.tv_sec) * 1000000000L
+ static_cast<long int>(time1.tv_nsec)) / 1);
+ printf("salt: %u\n", buf[0]);
printf("time: %ld\n", diff);
#endif // defined __linux__ || defined __linux