randomAccessBenchmark.fillImage();
}
} );
randomAccessBenchmark.intData = null;
randomAccessBenchmark.intImgCopy = new CellImgFactory< IntType >( 32 ).create( randomAccessBenchmark.dimensions, new IntType() );
System.out.println( "benchmarking copy to smaller" );
BenchmarkHelper.benchmarkAndPrint( 20, false, new Runnable()
{
@Override
public void run()
{
randomAccessBenchmark.copyWithSourceIteration( randomAccessBenchmark.intImg, randomAccessBenchmark.intImgCopy );
}
} );
randomAccessBenchmark.intImgCopy = null;
randomAccessBenchmark.intImgCopy = new CellImgFactory< IntType >( 50 ).create( randomAccessBenchmark.dimensions, new IntType() );
System.out.println( "benchmarking copy to larger" );
BenchmarkHelper.benchmarkAndPrint( 20, false, new Runnable()
{
@Override
public void run()
{
randomAccessBenchmark.copyWithSourceIteration( randomAccessBenchmark.intImg, randomAccessBenchmark.intImgCopy );
}
} );
randomAccessBenchmark.intImgCopy = null;
randomAccessBenchmark.intImgCopy = new CellImgFactory< IntType >( new int[] { 32, 64, 16 } ).create( randomAccessBenchmark.dimensions, new IntType() );
System.out.println( "benchmarking copy to mixed" );
BenchmarkHelper.benchmarkAndPrint( 20, false, new Runnable()
{
@Override
public void run()