mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
Add benchmark tool
This commit is contained in:
parent
b4989130da
commit
c75d071615
6 changed files with 14388 additions and 0 deletions
17
benchmark/crow/main.cpp
Normal file
17
benchmark/crow/main.cpp
Normal 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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue