crc32: add memset to performance cases

Change-Id: Ifc99a26d842fbf6963c259b6c82a1e0a312e081f
Signed-off-by: Xiaodong Liu <xiaodong.liu@intel.com>
This commit is contained in:
Xiaodong Liu 2016-11-02 19:48:25 -04:00 committed by Greg Tucker
parent 600d887143
commit 67fa1a7baf
3 changed files with 3 additions and 0 deletions

View File

@ -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++) {

View File

@ -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++) {

View File

@ -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++) {