mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Updated benchmarks and bench results
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user