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:

Functions

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

Variables

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

Function Documentation

◆ BENCHMARK()

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

◆ DoSetup()

static void DoSetup ( const benchmark::State &  )
static

◆ DoTeardown()

static void DoTeardown ( const benchmark::State &  )
static

◆ LatencyLongText()

static void LatencyLongText ( benchmark::State &  state)
static

Variable Documentation

◆ c

unsigned char c = ' '
static

◆ recv_c

std::atomic<int> recv_c
static

◆ server

std::unique_ptr<webcface::server::Server> server
static

◆ sync_thread

std::unique_ptr<std::thread> sync_thread
static

◆ wcli1

std::unique_ptr<webcface::Client> wcli1
static

◆ wcli2

std::unique_ptr<webcface::Client> wcli2
static