diff --git a/README.md b/README.md index 2225da463c..f453099d9b 100644 --- a/README.md +++ b/README.md @@ -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] ``` + diff --git a/benchmarks/Corley/Benchmarks/InfluxDB/AdapterEvent.php b/benchmarks/Corley/Benchmarks/InfluxDB/AdapterEvent.php index 55b4183588..ba43adac0d 100644 --- a/benchmarks/Corley/Benchmarks/InfluxDB/AdapterEvent.php +++ b/benchmarks/Corley/Benchmarks/InfluxDB/AdapterEvent.php @@ -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; }