We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41be1e2 commit 5282f9eCopy full SHA for 5282f9e
1 file changed
test/test.cc
@@ -3653,6 +3653,13 @@ void performance_test(const char *host) {
3653
3654
Client cli(host, port);
3655
3656
+ // Prewarm the server
3657
+ for (int i = 0; i < 10; i++) {
3658
+ auto res = cli.Get("/benchmark");
3659
+ ASSERT_TRUE(res);
3660
+ EXPECT_EQ(StatusCode::OK_200, res->status);
3661
+ }
3662
+
3663
auto start = std::chrono::high_resolution_clock::now();
3664
3665
auto res = cli.Get("/benchmark");
0 commit comments