Feature: performance test case

This commit is contained in:
liuxueli
2024-06-19 10:49:21 +00:00
parent bfc54a6289
commit cae0281c2f
14 changed files with 781 additions and 589 deletions

View File

@@ -100,9 +100,21 @@ extern "C" int commit_test_result_json(cJSON *node, const char *name)
return 0;
}
void perf_resource_record_decode()
void perf_resource_record_decode(struct dns_message *dns_msg)
{
TIME_START();
uint16_t n_answer_rr=0;
uint16_t n_additional_rr=0;
uint16_t n_authority_rr=0;
struct dns_resource_record *answer_rr=NULL;
struct dns_resource_record *additional_rr=NULL;
struct dns_resource_record *authority_rr=NULL;
dns_message_answer_resource_record_get0(dns_msg, &answer_rr, &n_answer_rr);
dns_message_authority_resource_record_get0(dns_msg, &authority_rr, &n_authority_rr);
dns_message_additional_resource_record_get0(dns_msg, &additional_rr, &n_additional_rr);
TIME_DIFF();
//fieldstat_easy_histogram_record(main_env->fse.handle, tid, main_env->fse.id[PERF_TAG_QUESTION], &(main_env->fse.tag[PERF_TAG_QUESTION]), 1, time_diff_ns)
}
void *pthread_message_publish(void *arg)