mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-06-03 18:17:38 +00:00
Add benchmark tool
This commit is contained in:
parent
b4989130da
commit
c75d071615
6 changed files with 14388 additions and 0 deletions
14316
benchmark/crow/crow_all.h
Normal file
14316
benchmark/crow/crow_all.h
Normal file
File diff suppressed because it is too large
Load diff
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