mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-15 07:27:42 -04:00
Better bench
This commit is contained in:
parent
7fb921853c
commit
15a2d1b1ea
@ -22,7 +22,7 @@ bool display_result(const char* name, uint64_t duration){
|
||||
return false;
|
||||
}
|
||||
|
||||
uint64_t throughput = 1000 * ((PAGES * 4096) / duration);
|
||||
uint64_t throughput = 1000 * ((repeat * PAGES * 4096) / duration);
|
||||
|
||||
if(throughput > (1024 * 1024)){
|
||||
printf("%s: %ums bandwith: %uMiB/s\n", name, duration, throughput / (1024 * 1024));
|
||||
@ -41,6 +41,8 @@ int main(){
|
||||
char* buffer_one = new char[PAGES * 4096];
|
||||
char* buffer_two = new char[PAGES * 4096];
|
||||
|
||||
printf("Start benchmark...\n");
|
||||
|
||||
uint64_t start = 0, end = 0;
|
||||
|
||||
while(repeat < 100){
|
||||
|
Loading…
x
Reference in New Issue
Block a user