@@ -17,18 +17,18 @@ TEST(perf_tests, check_perf_pipeline) {
1717 auto test_task = std::make_shared<ppc::test::perf::TestTask<uint32_t >>(in);
1818
1919 // Create Perf attributes
20- auto perf_attr = std::make_shared< ppc::core::PerfAttr>() ;
20+ ppc::core::PerfAttr perf_attr ;
2121
2222 // Create and init perf results
23- auto perf_results = std::make_shared< ppc::core::PerfResults>() ;
23+ ppc::core::PerfResults perf_results ;
2424
2525 // Create Perf analyzer
2626 ppc::core::Perf perf_analyzer (test_task);
2727 perf_analyzer.PipelineRun (perf_attr, perf_results);
2828
2929 // Get perf statistic
3030 ppc::core::Perf::PrintPerfStatistic (perf_results);
31- ASSERT_LE (perf_results-> time_sec , ppc::core::PerfResults::kMaxTime );
31+ ASSERT_LE (perf_results. time_sec , ppc::core::PerfResults::kMaxTime );
3232 EXPECT_EQ (test_task->Get (), in.size ());
3333}
3434
@@ -40,18 +40,18 @@ TEST(perf_tests, check_perf_pipeline_float) {
4040 auto test_task = std::make_shared<ppc::test::perf::TestTask<float >>(in);
4141
4242 // Create Perf attributes
43- auto perf_attr = std::make_shared< ppc::core::PerfAttr>() ;
43+ ppc::core::PerfAttr perf_attr ;
4444
4545 // Create and init perf results
46- auto perf_results = std::make_shared< ppc::core::PerfResults>() ;
46+ ppc::core::PerfResults perf_results ;
4747
4848 // Create Perf analyzer
4949 ppc::core::Perf perf_analyzer (test_task);
5050 perf_analyzer.PipelineRun (perf_attr, perf_results);
5151
5252 // Get perf statistic
5353 ppc::core::Perf::PrintPerfStatistic (perf_results);
54- ASSERT_LE (perf_results-> time_sec , ppc::core::PerfResults::kMaxTime );
54+ ASSERT_LE (perf_results. time_sec , ppc::core::PerfResults::kMaxTime );
5555 EXPECT_EQ (test_task->Get (), in.size ());
5656}
5757
@@ -63,18 +63,18 @@ TEST(perf_tests, check_perf_pipeline_uint8_t_slow_test) {
6363 auto test_task = std::make_shared<ppc::test::perf::FakePerfTask<uint8_t >>(in);
6464
6565 // Create Perf attributes
66- auto perf_attr = std::make_shared< ppc::core::PerfAttr>() ;
67- perf_attr-> num_running = 1 ;
66+ ppc::core::PerfAttr perf_attr ;
67+ perf_attr. num_running = 1 ;
6868
6969 const auto t0 = std::chrono::high_resolution_clock::now ();
70- perf_attr-> current_timer = [&] {
70+ perf_attr. current_timer = [&] {
7171 auto current_time_point = std::chrono::high_resolution_clock::now ();
7272 auto duration = std::chrono::duration_cast<std::chrono::nanoseconds>(current_time_point - t0).count ();
7373 return static_cast <double >(duration) * 1e-9 ;
7474 };
7575
7676 // Create and init perf results
77- auto perf_results = std::make_shared< ppc::core::PerfResults>() ;
77+ ppc::core::PerfResults perf_results ;
7878
7979 // Create Perf analyzer
8080 ppc::core::Perf perf_analyzer (test_task);
@@ -92,19 +92,19 @@ TEST(perf_tests, check_perf_task) {
9292 auto test_task = std::make_shared<ppc::test::perf::TestTask<uint32_t >>(in);
9393
9494 // Create Perf attributes
95- auto perf_attr = std::make_shared< ppc::core::PerfAttr>() ;
95+ ppc::core::PerfAttr perf_attr ;
9696
9797 // Create and init perf results
98- auto perf_results = std::make_shared< ppc::core::PerfResults>() ;
98+ ppc::core::PerfResults perf_results ;
9999
100100 // Create Perf analyzer
101101 ppc::core::Perf perf_analyzer (test_task);
102102 perf_analyzer.TaskRun (perf_attr, perf_results);
103103
104104 // Get perf statistic
105- perf_results-> type_of_running = ppc::core::PerfResults::kNone ;
105+ perf_results. type_of_running = ppc::core::PerfResults::kNone ;
106106 ppc::core::Perf::PrintPerfStatistic (perf_results);
107- ASSERT_LE (perf_results-> time_sec , ppc::core::PerfResults::kMaxTime );
107+ ASSERT_LE (perf_results. time_sec , ppc::core::PerfResults::kMaxTime );
108108 EXPECT_EQ (test_task->Get (), in.size ());
109109}
110110
@@ -116,18 +116,18 @@ TEST(perf_tests, check_perf_task_float) {
116116 auto test_task = std::make_shared<ppc::test::perf::TestTask<float >>(in);
117117
118118 // Create Perf attributes
119- auto perf_attr = std::make_shared< ppc::core::PerfAttr>() ;
119+ ppc::core::PerfAttr perf_attr ;
120120
121121 // Create and init perf results
122- auto perf_results = std::make_shared< ppc::core::PerfResults>() ;
122+ ppc::core::PerfResults perf_results ;
123123
124124 // Create Perf analyzer
125125 ppc::core::Perf perf_analyzer (test_task);
126126 perf_analyzer.TaskRun (perf_attr, perf_results);
127127
128128 // Get perf statistic
129- perf_results-> type_of_running = ppc::core::PerfResults::kPipeline ;
129+ perf_results. type_of_running = ppc::core::PerfResults::kPipeline ;
130130 ppc::core::Perf::PrintPerfStatistic (perf_results);
131- ASSERT_LE (perf_results-> time_sec , ppc::core::PerfResults::kMaxTime );
131+ ASSERT_LE (perf_results. time_sec , ppc::core::PerfResults::kMaxTime );
132132 EXPECT_EQ (test_task->Get (), in.size ());
133133}
0 commit comments