CARLA
Classes | Functions
test_benchmark_streaming.cpp File Reference
#include "test.h"
#include <carla/Buffer.h>
#include <carla/BufferView.h>
#include <carla/streaming/Client.h>
#include <carla/streaming/Server.h>
#include <boost/asio/post.hpp>
#include <algorithm>
+ Include dependency graph for test_benchmark_streaming.cpp:

Go to the source code of this file.

Classes

class  Benchmark
 

Functions

static void benchmark_image (const size_t dimensions, const size_t number_of_streams=1u, const double success_ratio=1.0)
 
static size_t get_max_concurrency ()
 
static auto make_special_message (size_t size)
 
 TEST (benchmark_streaming, image_200x200)
 
 TEST (benchmark_streaming, image_800x600)
 
 TEST (benchmark_streaming, image_1920x1080)
 
 TEST (benchmark_streaming, image_200x200_mt)
 
 TEST (benchmark_streaming, image_800x600_mt)
 
 TEST (benchmark_streaming, image_1920x1080_mt)
 

Function Documentation

◆ benchmark_image()

static void benchmark_image ( const size_t  dimensions,
const size_t  number_of_streams = 1u,
const double  success_ratio = 1.0 
)
static

Definition at line 136 of file test_benchmark_streaming.cpp.

References Benchmark::AddStreams(), carla::logging::log(), Benchmark::Run(), and TESTING_PORT.

Referenced by TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_max_concurrency()

static size_t get_max_concurrency ( )
static

Definition at line 131 of file test_benchmark_streaming.cpp.

Referenced by TEST().

+ Here is the caller graph for this function:

◆ make_special_message()

static auto make_special_message ( size_t  size)
static

Definition at line 21 of file test_benchmark_streaming.cpp.

References carla::BufferView::CreateFrom(), and carla::Buffer::size().

+ Here is the call graph for this function:

◆ TEST() [1/6]

TEST ( benchmark_streaming  ,
image_200x200   
)

Definition at line 147 of file test_benchmark_streaming.cpp.

References benchmark_image().

+ Here is the call graph for this function:

◆ TEST() [2/6]

TEST ( benchmark_streaming  ,
image_800x600   
)

Definition at line 151 of file test_benchmark_streaming.cpp.

References benchmark_image().

+ Here is the call graph for this function:

◆ TEST() [3/6]

TEST ( benchmark_streaming  ,
image_1920x1080   
)

Definition at line 155 of file test_benchmark_streaming.cpp.

References benchmark_image().

+ Here is the call graph for this function:

◆ TEST() [4/6]

TEST ( benchmark_streaming  ,
image_200x200_mt   
)

Definition at line 159 of file test_benchmark_streaming.cpp.

References benchmark_image(), and get_max_concurrency().

+ Here is the call graph for this function:

◆ TEST() [5/6]

TEST ( benchmark_streaming  ,
image_800x600_mt   
)

Definition at line 163 of file test_benchmark_streaming.cpp.

References benchmark_image(), and get_max_concurrency().

+ Here is the call graph for this function:

◆ TEST() [6/6]

TEST ( benchmark_streaming  ,
image_1920x1080_mt   
)

Definition at line 167 of file test_benchmark_streaming.cpp.

References benchmark_image(), and get_max_concurrency().

+ Here is the call graph for this function: