banner
Opera - The Fastest Browser on Earth
Search Now:
Amazon Logo
step by step

Performance


I wrote a test programm to compare performance of
java.io, java.nio and com.imagero.uio.

Download or see test programm.

Here you can see the results on my old PIII-866:

running IOTest.java:
filename:ratest.txt file size:2048000 array size:204800

test performance of java.io and java.nio (write byte arrays)

RandomAccessFile bulk write byte array: 2110
Using java.nio: 1890

test performance of writing int arrays

RandomAccessFile#writeInt(): 453000
Combine Unified I/O with java.io: 3844
RandomAccessFileWrapper#writeInt() (unbuffered):452531
RandomAccessFileWrapper#write(int[]) (unbuffered): 3407
RandomAccess#write(int[]) - (buffered): 2062
RandomAccess#writeInt() - (buffered): 4328
Using java.nio: 4875
Combine Unified I/O with java.nio: 2297