| 556 | } |
| 557 | |
| 558 | static int |
| 559 | timed_deletes(struct member_perf_params *params, int type) |
| 560 | { |
| 561 | unsigned int i; |
| 562 | int32_t ret; |
| 563 | |
| 564 | if (type == VBF) |
| 565 | return 0; |
| 566 | const uint64_t start_tsc = rte_rdtsc(); |
| 567 | for (i = 0; i < KEYS_TO_ADD; i++) { |
| 568 | ret = rte_member_delete(params->setsum[type], &keys[i], |
| 569 | data[type][i]); |
| 570 | if (type != CACHE && ret < 0) { |
| 571 | printf("delete error\n"); |
| 572 | return -1; |
| 573 | } |
| 574 | } |
| 575 | |
| 576 | const uint64_t end_tsc = rte_rdtsc(); |
| 577 | const uint64_t time_taken = end_tsc - start_tsc; |
| 578 | |
| 579 | cycles[type][params->cycle][DELETE] = time_taken / KEYS_TO_ADD; |
| 580 | |
| 581 | return 0; |
| 582 | } |
| 583 | |
| 584 | static int |
| 585 | timed_miss_lookup(struct member_perf_params *params, int type) |
no test coverage detected