Feature: performance test case

This commit is contained in:
liuxueli
2024-06-13 19:53:11 +00:00
parent aaba41c67c
commit 3ceb026983
4 changed files with 291 additions and 0 deletions

View 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);