mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-19 14:03:05 +01:00
I/O benchmark code cleaning
This commit is contained in:
1 parent
e9c5a271a8
commit
5ee832f738
3 files changed
+50
-44
No files matched your search
@@ -101,7 +101,7 @@ void stdWrite(const std::string filestem, Field &vec)
|
||||
ioWatch.Stop();
|
||||
size *= vec.Grid()->ProcessorCount();
|
||||
MSG << "Std I/O write: Wrote " << size << " bytes in " << ioWatch.Elapsed()
|
||||
<< ", performance " << size/1024./1024./(ioWatch.useconds()/1.e6)
|
||||
<< ", " << size/1024./1024./(ioWatch.useconds()/1.e6)
|
||||
<< " MB/s" << std::endl;
|
||||
MSG << "Std I/O write: checksum overhead " << crcWatch.Elapsed() << std::endl;
|
||||
}
|
||||
@@ -136,7 +136,7 @@ void stdRead(Field &vec, const std::string filestem)
|
||||
assert(crcData == crcRead);
|
||||
size *= vec.Grid()->ProcessorCount();
|
||||
MSG << "Std I/O read: Read " << size << " bytes in " << ioWatch.Elapsed()
|
||||
<< ", performance " << size/1024./1024./(ioWatch.useconds()/1.e6)
|
||||
<< ", " << size/1024./1024./(ioWatch.useconds()/1.e6)
|
||||
<< " MB/s" << std::endl;
|
||||
MSG << "Std I/O read: checksum overhead " << crcWatch.Elapsed() << std::endl;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user