-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
24 lines (19 loc) · 1.19 KB
/
Copy pathmain.cpp
File metadata and controls
24 lines (19 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// main_simple.cpp - wersja bez ncurses
#include "disk_benchmark.h"
#include <iostream>
#include <iomanip>
int main() {
DiskBenchmark benchmark;
std::cout << "=== Linux Disk Benchmark ===" << std::endl;
std::cout << "Uruchamianie testów..." << std::endl;
auto results = benchmark.run_all_benchmarks();
std::cout << "\nWYNIKI:" << std::endl;
std::cout << "--------------------------------------------" << std::endl;
std::cout << " | PRĘDKOŚĆ (MB/s) | IOPS " << std::endl;
std::cout << "--------------------------------------------" << std::endl;
std::cout << "Seq Read | " << std::setw(12) << results.seq_read_mbps << " | " << std::setw(8) << results.seq_read_iops << std::endl;
std::cout << "Seq Write | " << std::setw(12) << results.seq_write_mbps << " | " << std::setw(8) << results.seq_write_iops << std::endl;
std::cout << "Random Read | " << std::setw(12) << results.rand_read_mbps << " | " << std::setw(8) << results.rand_read_iops << std::endl;
std::cout << "Random Write| " << std::setw(12) << results.rand_write_mbps << " | " << std::setw(8) << results.rand_write_iops << std::endl;
return 0;
}