Add benchmark tool

This commit is contained in:
yhirose 2024-09-05 12:22:46 -04:00
parent b4989130da
commit c75d071615
6 changed files with 14388 additions and 0 deletions

17
benchmark/crow/main.cpp Normal file
View file

@ -0,0 +1,17 @@
#include "crow_all.h"
class CustomLogger : public crow::ILogHandler {
public:
void log(std::string, crow::LogLevel) {}
};
int main() {
CustomLogger logger;
crow::logger::setHandler(&logger);
crow::SimpleApp app;
CROW_ROUTE(app, "/")([]() { return "Hello world!"; });
app.port(8080).multithreaded().run();
}