Skip to content

Commit

Permalink
refs #6362 unblocking some performance tests (not all yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Jan 23, 2013
1 parent 8f1b9fa commit 2f55d5f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Code/Mantid/Framework/Kernel/test/DiskBufferTest.h
Expand Up @@ -888,7 +888,10 @@ class DiskBufferTestPerformance : public CxxTest::TestSuite
CPUTimer tim;
DiskBuffer dbuf(3);
for (size_t i=0; i<data.size(); i++)
{
dbuf.toWrite(data[i]);
data[i]->setBusy(false);
}
std::cout << tim << " to load " << num << " into MRU." << std::endl;
}

Expand All @@ -902,7 +905,10 @@ class DiskBufferTestPerformance : public CxxTest::TestSuite
}

for (int i=0; i<int(data.size()); i++)
{
dbuf.toWrite(data[i]);
data[i]->setBusy(false);
}
std::cout << tim << " to load " << num << " into MRU (no write cache)." << std::endl;
}

Expand All @@ -911,7 +917,10 @@ class DiskBufferTestPerformance : public CxxTest::TestSuite
CPUTimer tim;
DiskBuffer dbuf(1000);
for (int i=0; i<int(data.size()); i++)
{
dbuf.toWrite(data[i]);
data[i]->setBusy(false);
}
std::cout << tim << " to load " << num << " into MRU." << std::endl;
}

Expand All @@ -920,7 +929,10 @@ class DiskBufferTestPerformance : public CxxTest::TestSuite
CPUTimer tim;
DiskBuffer dbuf(0);
for (int i=0; i<int(data.size()); i++)
{
dbuf.toWrite(data[i]);
data[i]->setBusy(false);
}
std::cout << tim << " to load " << num << " into MRU (no write buffer)." << std::endl;
}

Expand Down

0 comments on commit 2f55d5f

Please sign in to comment.