MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / bench_des

Function bench_des

extra/yassl/taocrypt/benchmark/benchmark.cpp:106–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105
106void bench_des()
107{
108 DES_EDE3_CBC_Encryption enc;
109 enc.SetKey(key, 16, iv);
110
111 double start = current_time();
112
113 for(int i = 0; i < megs; i++)
114 enc.Process(plain, cipher, sizeof(plain));
115
116 double total = current_time() - start;
117
118 double persec = 1 / total * megs;
119
120 printf("3DES %d megs took %5.3f seconds, %6.2f MB/s\n", megs, total,
121 persec);
122}
123
124
125void bench_aes(bool show)

Callers 1

mainFunction · 0.85

Calls 3

current_timeFunction · 0.85
SetKeyMethod · 0.45
ProcessMethod · 0.45

Tested by

no test coverage detected