mirror of
https://github.com/intel/isa-l.git
synced 2025-01-20 20:50:26 +01:00
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");
|
printf("Start timed tests\n");
|
||||||
fflush(0);
|
fflush(0);
|
||||||
|
|
||||||
|
memset(buf, 0, TEST_LEN);
|
||||||
crc = crc16_t10dif(TEST_SEED, buf, TEST_LEN);
|
crc = crc16_t10dif(TEST_SEED, buf, TEST_LEN);
|
||||||
perf_start(&start);
|
perf_start(&start);
|
||||||
for (i = 0; i < TEST_LOOPS; i++) {
|
for (i = 0; i < TEST_LOOPS; i++) {
|
||||||
|
@ -72,6 +72,7 @@ int main(int argc, char *argv[])
|
|||||||
printf("Start timed tests\n");
|
printf("Start timed tests\n");
|
||||||
fflush(0);
|
fflush(0);
|
||||||
|
|
||||||
|
memset(buf, 0, TEST_LEN);
|
||||||
crc = crc32_ieee(TEST_SEED, buf, TEST_LEN);
|
crc = crc32_ieee(TEST_SEED, buf, TEST_LEN);
|
||||||
perf_start(&start);
|
perf_start(&start);
|
||||||
for (i = 0; i < TEST_LOOPS; i++) {
|
for (i = 0; i < TEST_LOOPS; i++) {
|
||||||
|
@ -72,6 +72,7 @@ int main(int argc, char *argv[])
|
|||||||
printf("Start timed tests\n");
|
printf("Start timed tests\n");
|
||||||
fflush(0);
|
fflush(0);
|
||||||
|
|
||||||
|
memset(buf, 0, TEST_LEN);
|
||||||
crc = crc32_iscsi(buf, TEST_LEN, TEST_SEED);
|
crc = crc32_iscsi(buf, TEST_LEN, TEST_SEED);
|
||||||
perf_start(&start);
|
perf_start(&start);
|
||||||
for (i = 0; i < TEST_LOOPS; i++) {
|
for (i = 0; i < TEST_LOOPS; i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user