From db322f33ba13592f2492317e3f1a070454c97059 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期四, 13 五月 2021 19:34:46 +0800
Subject: [PATCH] center alloc all msgs.

---
 utest/speed_test.cpp |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/utest/speed_test.cpp b/utest/speed_test.cpp
index f8f54f5..334c081 100644
--- a/utest/speed_test.cpp
+++ b/utest/speed_test.cpp
@@ -92,9 +92,9 @@
 		}
 	};
 
-	int nwriters[] = {1, 10, 100};
+	int nwriters[] = {1, 10, 100, 1000};
 	int nreaders[] = {2};
-	const int64_t total_msg = 1000 * 100;
+	const int64_t total_msg = 1000 * 1000;
 
 	auto Test = [&](auto &www, auto &rrr, bool isfork) {
 		for (auto nreader : nreaders) {
@@ -127,12 +127,13 @@
 	// typedef ThreadManager Manager;
 	// const bool isfork = IsSameType<Manager, ProcessManager>::value;
 
-	{
+	if (0) {
 		ThreadManager tw, tr;
 		printf("---------------- Testing thread io:  -------------------------------------------------------\n");
 		Test(tw, tr, false);
 	}
-	{
+
+	if (1) {
 		ProcessManager pw, pr;
 		printf("================ Testing process io: =======================================================\n");
 		Test(pw, pr, true);

--
Gitblit v1.8.0