crc32: add memset to performance cases
Change-Id: Ifc99a26d842fbf6963c259b6c82a1e0a312e081f Signed-off-by: Xiaodong Liu <xiaodong.liu@intel.com>
This commit is contained in:
parent
600d887143
commit
67fa1a7baf
@ -72,6 +72,7 @@ int main(int argc, char *argv[])
|
||||
printf("Start timed tests\n");
|
||||
fflush(0);
|
||||
|
||||
memset(buf, 0, TEST_LEN);
|
||||
crc = crc16_t10dif(TEST_SEED, buf, TEST_LEN);
|
||||
perf_start(&start);
|
||||
for (i = 0; i < TEST_LOOPS; i++) {
|
||||
|
@ -72,6 +72,7 @@ int main(int argc, char *argv[])
|
||||
printf("Start timed tests\n");
|
||||
fflush(0);
|
||||
|
||||
memset(buf, 0, TEST_LEN);
|
||||
crc = crc32_ieee(TEST_SEED, buf, TEST_LEN);
|
||||
perf_start(&start);
|
||||
for (i = 0; i < TEST_LOOPS; i++) {
|
||||
|
@ -72,6 +72,7 @@ int main(int argc, char *argv[])
|
||||
printf("Start timed tests\n");
|
||||
fflush(0);
|
||||
|
||||
memset(buf, 0, TEST_LEN);
|
||||
crc = crc32_iscsi(buf, TEST_LEN, TEST_SEED);
|
||||
perf_start(&start);
|
||||
for (i = 0; i < TEST_LOOPS; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user