Sequoia
Loading...
Searching...
No Matches
ConcurrencyModelsPerformanceTest.hpp
Go to the documentation of this file.
1
2// Copyright Oliver J. Rosten 2020. //
3// Distributed under the GNU GENERAL PUBLIC LICENSE, Version 3.0. //
4// (See accompanying file LICENSE.md or copy at //
5// https://www.gnu.org/licenses/gpl-3.0.en.html) //
7
8#pragma once
9
13
14namespace sequoia::testing
15{
17 {
18 public:
19 using performance_test::performance_test;
20
21 [[nodiscard]]
22 std::filesystem::path source_file() const;
23
24 void run_tests();
25 private:
26
27 void test_waiting_task(const std::chrono::milliseconds millisecs);
28 void test_waiting_task_return(const std::chrono::milliseconds millisecs);
29 };
30
31 class wait
32 {
33 std::chrono::milliseconds m_Wait;
34 public:
35 wait(const std::chrono::milliseconds millisecs) : m_Wait{millisecs} {}
36
37 void operator()() const
38 {
39 std::this_thread::sleep_for(m_Wait);
40 }
41 };
42}
Extension of the testing framework for perfomance testing.
class template from which all concrete tests should derive
Definition: PerformanceTestCore.hpp:261
Definition: ConcurrencyModelsPerformanceTest.hpp:17
Definition: ConcurrencyModelsPerformanceTest.hpp:32