1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#include "../common/create_streampair.hpp"
#include "../common/lsltypes.hpp"
#include <catch2/catch.hpp>
#include <lsl_cpp.h>
// clazy:excludeall=non-pod-global-static
TEST_CASE("bounce", "[basic][latency]") {
auto sp = create_streampair(lsl::stream_info("bounce", "Test"));
float data = .0;
BENCHMARK("single bounce") {
sp.out_.push_sample(&data);
sp.in_.pull_sample(&data, 1.);
};
sp.out_.push_sample(&data);
BENCHMARK("primed bounce") {
sp.out_.push_sample(&data);
sp.in_.pull_sample(&data, 1.);
};
}
|