Added data and begun report
This commit is contained in:
13
main.cpp
13
main.cpp
@ -213,8 +213,6 @@ int main(int argc, char *argv[]) {
|
||||
ofstream csvfile;
|
||||
csvfile.open("performance.csv");
|
||||
|
||||
goto theend;
|
||||
|
||||
for (std::string image : images1) {
|
||||
cout << endl
|
||||
<< "\033[1;31mProcessing: \t" << image << "\033[0m" << endl;
|
||||
@ -399,26 +397,27 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
theend:
|
||||
cout << "Computing reading and writing speeds" << endl;
|
||||
for (auto image : images1) {
|
||||
cout << endl
|
||||
<< "\033[1;31mProcessing: \t" << image << "\033[0m" << endl;
|
||||
csvfile << "RWtime:," << image << ",";
|
||||
vector<long long int> results;
|
||||
for (int i = 0; i < average_max_rw; ++i) {
|
||||
results.push_back(reading_writing({image}));
|
||||
}
|
||||
csvfile << std::accumulate(results.begin(), results.end(), 0) /
|
||||
average_max_rw
|
||||
csvfile << *std::min_element(results.begin(), results.end())
|
||||
<< "\n";
|
||||
}
|
||||
for (auto image : images2) {
|
||||
cout << endl
|
||||
<< "\033[1;31mProcessing: \t" << image << "\033[0m" << endl;
|
||||
csvfile << "RWtime:," << image << ",";
|
||||
vector<long long int> results;
|
||||
for (int i = 0; i < average_max_rw; ++i) {
|
||||
results.push_back(reading_writing({image}));
|
||||
}
|
||||
csvfile << std::accumulate(results.begin(), results.end(), 0) /
|
||||
average_max_rw
|
||||
csvfile << *std::min_element(results.begin(), results.end())
|
||||
<< "\n";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user