Feature: performance test case
This commit is contained in:
17
test/dns_decoder_perf_dummy.h
Normal file
17
test/dns_decoder_perf_dummy.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include "stellar/stellar.h"
|
||||
#include <stellar/session_mq.h>
|
||||
|
||||
struct stellar_packet
|
||||
{
|
||||
size_t payload_sz;
|
||||
uint8_t payload[2048];
|
||||
};
|
||||
|
||||
struct stellar *stellar_init(int worker_thread_num);
|
||||
|
||||
struct session *stellar_session_new(struct stellar *st, int tid);
|
||||
void stellar_session_free(struct session *ss);
|
||||
|
||||
int session_mq_publish_message_by_name(struct session *ss, const char *topic_name, struct stellar_packet *msg);
|
||||
Reference in New Issue
Block a user