|
@@ -56,7 +56,6 @@ namespace Benchmarks
|
|
{
|
|
{
|
|
plaintextResult = new StringBytes(_helloWorldPayload);
|
|
plaintextResult = new StringBytes(_helloWorldPayload);
|
|
mApiServer = new HttpApiServer();
|
|
mApiServer = new HttpApiServer();
|
|
- mApiServer.Register(typeof(Program).Assembly);
|
|
|
|
mApiServer.Options.Port = 8080;
|
|
mApiServer.Options.Port = 8080;
|
|
mApiServer.Options.BufferPoolMaxMemory = 500;
|
|
mApiServer.Options.BufferPoolMaxMemory = 500;
|
|
mApiServer.Options.MaxConnections = 100000;
|
|
mApiServer.Options.MaxConnections = 100000;
|
|
@@ -64,6 +63,8 @@ namespace Benchmarks
|
|
mApiServer.Options.UrlIgnoreCase = false;
|
|
mApiServer.Options.UrlIgnoreCase = false;
|
|
mApiServer.Options.LogLevel = BeetleX.EventArgs.LogType.Off;
|
|
mApiServer.Options.LogLevel = BeetleX.EventArgs.LogType.Off;
|
|
mApiServer.Options.LogToConsole = true;
|
|
mApiServer.Options.LogToConsole = true;
|
|
|
|
+ mApiServer.Options.PrivateBufferPool = true;
|
|
|
|
+ mApiServer.Register(typeof(Program).Assembly);
|
|
mApiServer.HttpRequesting += OnRequesting;
|
|
mApiServer.HttpRequesting += OnRequesting;
|
|
mApiServer.Open();
|
|
mApiServer.Open();
|
|
return Task.CompletedTask;
|
|
return Task.CompletedTask;
|