File tree Expand file tree Collapse file tree
modules/core/perf/include
example_processes/tests/performance
example_threads/tests/performance Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ namespace ppc::core {
1515
1616struct PerfAttr {
1717 // count of task's running
18- uint64_t num_running = 10 ;
18+ uint64_t num_running = 5 ;
1919 std::function<double ()> current_timer = [&] { return -1.0 ; };
2020};
2121
@@ -102,7 +102,7 @@ class Perf {
102102 pipeline ();
103103 }
104104 auto end = perf_attr.current_timer ();
105- perf_results.time_sec = end - begin;
105+ perf_results.time_sec = ( end - begin) / perf_attr. num_running ;
106106 }
107107};
108108
Original file line number Diff line number Diff line change 1010namespace nesterov_a_test_task_processes {
1111
1212class ExampleRunPerfTestProcesses : public ppc ::util::BaseRunPerfTests<InType, OutType> {
13- const int kCount_ = 111 ;
13+ const int kCount_ = 200 ;
1414 InType input_data_{};
1515
1616 void SetUp () override { input_data_ = kCount_ ; }
Original file line number Diff line number Diff line change 1111namespace nesterov_a_test_task_threads {
1212
1313class ExampleRunPerfTestThreads : public ppc ::util::BaseRunPerfTests<InType, OutType> {
14- const int kCount_ = 111 ;
14+ const int kCount_ = 200 ;
1515 InType input_data_{};
1616
1717 void SetUp () override { input_data_ = kCount_ ; }
You can’t perform that action at this time.
0 commit comments