Updated benchmarks and bench results

This commit is contained in:
Walter Dal Mut
2015-06-10 15:54:06 +02:00
parent b65eb99d9f
commit 70c0f57bfa
2 changed files with 11 additions and 4 deletions
+3 -2
View File
@@ -193,6 +193,7 @@ The impact using UDP or HTTP adapters
Corley\Benchmarks\InfluxDB\AdapterEvent
Method Name Iterations Average Time Ops/second
------------------------ ------------ -------------- -------------
sendDataUsingHttpAdapter: [1,000 ] [0.0026700308323] [374.52751]
sendDataUsingUdpAdapter : [1,000 ] [0.0000436344147] [22,917.69026]
sendDataUsingHttpAdapter: [1,000 ] [0.0098177127838] [101.85672]
sendDataUsingUdpAdapter : [1,000 ] [0.0000694372654] [14,401.48880]
```
@@ -17,16 +17,22 @@ class AdapterEvent extends AthleticEvent
{
$client = new Client();
$options = new Options();
$options->setHost("localhost");
$options->setPort(8086);
$options->setUsername("root");
$options->setPassword("root");
$options->setDatabase("bench");
$options->setDatabase("tcp.test");
$client->setAdapter(
new GuzzleAdapter(new HttpClient(), $options)
);
$this->httpClient = $client;
$opts = new Options();
$opts->setPort(4444);
$client = new Client();
$client->setAdapter(new UdpAdapter(new Options()));
$client->setAdapter(new UdpAdapter($opts));
$this->udpClient = $client;
}