aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/ChecksumBench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bench/ChecksumBench.cpp')
-rw-r--r--bench/ChecksumBench.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/bench/ChecksumBench.cpp b/bench/ChecksumBench.cpp
index bac7bddc81..cba9572aa3 100644
--- a/bench/ChecksumBench.cpp
+++ b/bench/ChecksumBench.cpp
@@ -9,12 +9,10 @@
#include "SkChecksum.h"
#include "SkMD5.h"
#include "SkRandom.h"
-#include "SkSHA1.h"
#include "SkTemplates.h"
enum ChecksumType {
kMD5_ChecksumType,
- kSHA1_ChecksumType,
kMurmur3_ChecksumType,
};
@@ -42,7 +40,6 @@ protected:
const char* onGetName() override {
switch (fType) {
case kMD5_ChecksumType: return "compute_md5";
- case kSHA1_ChecksumType: return "compute_sha1";
case kMurmur3_ChecksumType: return "compute_murmur3";
default: SK_ABORT("Invalid Type"); return "";
@@ -59,14 +56,6 @@ protected:
md5.finish(digest);
}
} break;
- case kSHA1_ChecksumType: {
- for (int i = 0; i < loops; i++) {
- SkSHA1 sha1;
- sha1.update(reinterpret_cast<uint8_t*>(fData), sizeof(fData));
- SkSHA1::Digest digest;
- sha1.finish(digest);
- }
- } break;
case kMurmur3_ChecksumType: {
for (int i = 0; i < loops; i++) {
volatile uint32_t result = SkChecksum::Murmur3(fData, sizeof(fData));
@@ -84,5 +73,4 @@ private:
///////////////////////////////////////////////////////////////////////////////
DEF_BENCH( return new ComputeChecksumBench(kMD5_ChecksumType); )
-DEF_BENCH( return new ComputeChecksumBench(kSHA1_ChecksumType); )
DEF_BENCH( return new ComputeChecksumBench(kMurmur3_ChecksumType); )