WebCFace 2.9.0
Web-based Communication Framework & Dashboard-like UI
Loading...
Searching...
No Matches
latency-text.cc File Reference
#include <benchmark/benchmark.h>
#include <webcface/client.h>
#include <webcface/text.h>
#include <webcface/server/server.h>
#include <atomic>
#include <iostream>
#include <memory>
Include dependency graph for latency-text.cc:

Namespaces

namespace  BM_LatencyLongText
 

Functions

void DoSetup (const benchmark::State &)
 
void DoTeardown (const benchmark::State &)
 
void LatencyLongText (benchmark::State &state)
 
 BENCHMARK (LatencyLongText) -> RangeMultiplier(16) ->Range(1, 1048576) ->Setup(BM_LatencyLongText::DoSetup) ->Teardown(BM_LatencyLongText::DoTeardown)
 

Variables

std::unique_ptr< webcface::server::Serverserver
 
std::unique_ptr< webcface::Clientwcli1
 
std::unique_ptr< webcface::Clientwcli2
 
std::unique_ptr< std::thread > sync_thread
 
std::atomic< int > recv_c
 
unsigned char c = ' '
 

Function Documentation

◆ BENCHMARK()

BENCHMARK ( LatencyLongText  ) -> RangeMultiplier(16) ->Range(1, 1048576) ->Setup(BM_LatencyLongText::DoSetup) ->Teardown(BM_LatencyLongText::DoTeardown)

◆ LatencyLongText()

void LatencyLongText ( benchmark::State &  state)