logger.info( "************************************************" );
}
public void rawInsert( int megabytes, int howMany )
{
Allocator allocator = new MergingByteBufferAllocator( 1, megabytes * 1024 * 1024 );
assertNotNull( allocator );
int size = allocator.getCapacity() / ( howMany );
size -= size / 100 * 1;
logger.info( "payload size=" + size );
logger.info( "entries=" + howMany );
logger.info( "starting..." );
long start = System.currentTimeMillis();
for ( int i = 0; i < howMany; i++ )
{
allocator.allocate( size );
}
logger.info( "...done in " + ( System.currentTimeMillis() - start ) + " msecs." );
logger.info( "---------------------------------" );
dump( allocator );