2 megabytes is sufficient for testing purposes.
This commit is contained in:
parent
32693aeaff
commit
f4ae511af0
@ -29,7 +29,7 @@ public class NativeZlibTest
|
|||||||
System.out.println( "Testing: " + zlib );
|
System.out.println( "Testing: " + zlib );
|
||||||
long start = System.currentTimeMillis();
|
long start = System.currentTimeMillis();
|
||||||
|
|
||||||
byte[] dataBuf = new byte[ 1 << 25 ]; // 32 megabytes
|
byte[] dataBuf = new byte[ 1 << 22 ]; // 2 megabytes
|
||||||
new Random().nextBytes( dataBuf );
|
new Random().nextBytes( dataBuf );
|
||||||
|
|
||||||
zlib.init( true, 9 );
|
zlib.init( true, 9 );
|
||||||
|
Loading…
Reference in New Issue
Block a user