summaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp/common/nio/TestByteBufferInputStream.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-10-03 03:47:27 +0200
committerSven Gothel <[email protected]>2014-10-03 03:47:27 +0200
commit89831e61dc68b29ceb6c1cc579f6a7bb17a46d70 (patch)
tree0a5685efdef6eebdccae4d77541e5237653abd9c /src/junit/com/jogamp/common/nio/TestByteBufferInputStream.java
parent9b4656a2b676bcad43e67e5ee47f4ed00399a83a (diff)
TestByteBufferCopyStream, TestByteBufferInputStream: Reduce load and test time
Diffstat (limited to 'src/junit/com/jogamp/common/nio/TestByteBufferInputStream.java')
-rw-r--r--src/junit/com/jogamp/common/nio/TestByteBufferInputStream.java18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/junit/com/jogamp/common/nio/TestByteBufferInputStream.java b/src/junit/com/jogamp/common/nio/TestByteBufferInputStream.java
index 61961a3..f325b30 100644
--- a/src/junit/com/jogamp/common/nio/TestByteBufferInputStream.java
+++ b/src/junit/com/jogamp/common/nio/TestByteBufferInputStream.java
@@ -137,7 +137,7 @@ public class TestByteBufferInputStream extends JunitTracer {
testCopyIntSize1Impl(fileHalfGiB, halfGiB);
- testCopyIntSize1Impl(fileOneGiB, oneGiB);
+ // testCopyIntSize1Impl(fileOneGiB, oneGiB);
}
static enum SrcType { COPY, MMAP1, MMAP2_NONE, MMAP2_SOFT, MMAP2_HARD };
@@ -161,18 +161,10 @@ public class TestByteBufferInputStream extends JunitTracer {
}
void testCopyIntSize1Impl(final String testFileName, final long expSize) throws IOException {
- testCopyIntSize1Impl(SrcType.COPY, buffer__8KiB, testFileName, expSize);
- testCopyIntSize1Impl(SrcType.COPY, hunMiB, testFileName, expSize);
- testCopyIntSize1Impl(SrcType.MMAP1, 0, testFileName, expSize);
- testCopyIntSize1Impl(SrcType.MMAP2_SOFT, 0, testFileName, expSize);
- System.err.println();
- }
- void testCopyIntSize1Impl(final SrcType srcType, final int reqBufferSize, final String testFileName, final long expSize) throws IOException {
- if( testCopyIntSize1Impl2(0, srcType, reqBufferSize, testFileName, expSize) ) {
- if( testCopyIntSize1Impl2(1, srcType, reqBufferSize, testFileName, expSize) ) {
- // testCopyIntSize1Impl2(2, srcType, reqBufferSize, testFileName, expSize);
- }
- }
+ testCopyIntSize1Impl2(0, SrcType.COPY, buffer__8KiB, testFileName, expSize);
+ testCopyIntSize1Impl2(0, SrcType.COPY, hunMiB, testFileName, expSize);
+ testCopyIntSize1Impl2(0, SrcType.MMAP1, 0, testFileName, expSize);
+ testCopyIntSize1Impl2(0, SrcType.MMAP2_SOFT, 0, testFileName, expSize);
System.err.println();
}
boolean testCopyIntSize1Impl2(final int iter, final SrcType srcType, final int reqBufferSize, final String testFileName, final long expSize) throws IOException {