Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Commit

Permalink
Merge branch 'learning-process:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimbelan authored Jun 11, 2024
2 parents ba1ebbe + 87e2108 commit 4d4d8a9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
8 changes: 4 additions & 4 deletions tasks/omp/derun_a_shell/perf_tests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "omp/derun_a_shell/include/shell_omp.hpp"

TEST(derun_andrey_shell_omp, pipeline_run) {
const int count = 10000;
const int count = 2000000;

// Create data
std::vector<int> in = ShellOMP::generate_random_vector(count, 1, 100);
Expand Down Expand Up @@ -44,10 +44,10 @@ TEST(derun_andrey_shell_omp, pipeline_run) {
}

TEST(derun_andrey_shell_omp, task_run) {
const int count = 10000;
const int count = 8000000;

// Create data
std::vector<int> in(1, count);
std::vector<int> in = ShellOMP::generate_random_vector(count, 1, 100);
std::vector<int> out(count, 0);

// Create TaskData
Expand Down Expand Up @@ -77,5 +77,5 @@ TEST(derun_andrey_shell_omp, task_run) {
auto perfAnalyzer = std::make_shared<ppc::core::Perf>(testTaskOMP);
perfAnalyzer->task_run(perfAttr, perfResults);
ppc::core::Perf::print_perf_statistic(perfResults);
ASSERT_EQ(count, out[0]);
ASSERT_TRUE(ShellOMP::checkSorted(out));
}
9 changes: 5 additions & 4 deletions tasks/seq/derun_a_shell/perf_tests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "seq/derun_a_shell/include/shell_seq.hpp"

TEST(derun_andrey_shell_seq, pipeline_run) {
const int count = 10000;
const int count = 2000000;

// Create data
std::vector<int> in = ShellSequential::generate_random_vector(count, 1, 100);
Expand Down Expand Up @@ -44,10 +44,11 @@ TEST(derun_andrey_shell_seq, pipeline_run) {
}

TEST(derun_andrey_shell_seq, task_run) {
const int count = 10000;
const int count = 8000000;

// Create data
std::vector<int> in(1, count);
// std::vector<int> in(1, count);
std::vector<int> in = ShellSequential::generate_random_vector(count, 1, 100);
std::vector<int> out(count, 0);

// Create TaskData
Expand Down Expand Up @@ -77,5 +78,5 @@ TEST(derun_andrey_shell_seq, task_run) {
auto perfAnalyzer = std::make_shared<ppc::core::Perf>(testTaskSequential);
perfAnalyzer->task_run(perfAttr, perfResults);
ppc::core::Perf::print_perf_statistic(perfResults);
ASSERT_EQ(count, out[0]);
ASSERT_TRUE(ShellSequential::checkSorted(out));
}
8 changes: 4 additions & 4 deletions tasks/tbb/derun_a_shell/perf_tests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "tbb/derun_a_shell/include/shell_tbb.hpp"

TEST(derun_andrey_shell_tbb, pipeline_run) {
const int count = 10000;
const int count = 2000000;

// Create data
std::vector<int> in = ShellTBB::generate_random_vector(count, 1, 100);
Expand Down Expand Up @@ -44,10 +44,10 @@ TEST(derun_andrey_shell_tbb, pipeline_run) {
}

TEST(derun_andrey_shell_tbb, task_run) {
const int count = 10000;
const int count = 8000000;

// Create data
std::vector<int> in(1, count);
std::vector<int> in = ShellTBB::generate_random_vector(count, 1, 100);
std::vector<int> out(count, 0);

// Create TaskData
Expand Down Expand Up @@ -77,5 +77,5 @@ TEST(derun_andrey_shell_tbb, task_run) {
auto perfAnalyzer = std::make_shared<ppc::core::Perf>(testTaskTBB);
perfAnalyzer->task_run(perfAttr, perfResults);
ppc::core::Perf::print_perf_statistic(perfResults);
ASSERT_EQ(count, out[0]);
ASSERT_TRUE(ShellTBB::checkSorted(out));
}

0 comments on commit 4d4d8a9

Please sign in to comment.