From b155aa1b1a612c42b7233f8a91239c21ccede31b Mon Sep 17 00:00:00 2001 From: antao Date: Wed, 10 Jul 2019 17:57:47 +0800 Subject: [PATCH] Add a README file for examples --- config.example.json | 2 +- drogon_ctl/templates/config.csp | 2 +- examples/README.md | 12 ++++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 examples/README.md diff --git a/config.example.json b/config.example.json index 4e6f49cd..179a0df4 100644 --- a/config.example.json +++ b/config.example.json @@ -48,7 +48,7 @@ //any synchronous interface of it. "is_fast": false, //connection_number: 1 by default, if the 'is_fast' is true, the number is the number of - connections per IO thread, otherwise it is the total number of all connections. + //connections per IO thread, otherwise it is the total number of all connections. "connection_number": 1 } ],*/ diff --git a/drogon_ctl/templates/config.csp b/drogon_ctl/templates/config.csp index ef4bbaf9..3be2c968 100644 --- a/drogon_ctl/templates/config.csp +++ b/drogon_ctl/templates/config.csp @@ -48,7 +48,7 @@ //any synchronous interface of it. "is_fast": false, //connection_number: 1 by default, if the 'is_fast' is true, the number is the number of - connections per IO thread, otherwise it is the total number of all connections. + //connections per IO thread, otherwise it is the total number of all connections. "connection_number": 1 } ],*/ diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 00000000..3b45ec26 --- /dev/null +++ b/examples/README.md @@ -0,0 +1,12 @@ +# Drogon Examples + +The following examples can help you understand how to use Drogon: + +1. [benchmark](https://github.com/an-tao/drogon/tree/master/examples/benchmark) - Basic benchmark example. see [wiki benchmarks](https://github.com/an-tao/drogon/wiki/13-Benchmarks) +2. [client_example](https://github.com/an-tao/drogon/tree/master/examples/client_example/main.cc) - A client example. +3. [simple_example](https://github.com/an-tao/drogon/tree/master/examples/simple_example) - A simple example showing how to create a web application using Drogon. +4. [simple_example_test](https://github.com/an-tao/drogon/tree/master/examples/simple_example_test) - Some tests for the `simple_example`. + +### [TechEmpower Framework Benchmarks](https://github.com/TechEmpower/FrameworkBenchmarks) test suite + +I created a benchmark suite for the `tfb`, see [here](https://github.com/TechEmpower/FrameworkBenchmarks/tree/master/frameworks/C%2B%2B/drogon) for details. \ No newline at end of file