[infinispan-dev] Using Dummy VS JBossTM for running tests

Mircea Markus mircea.markus at jboss.com
Tue Feb 22 11:39:01 EST 2011


Good point. how can I disable the optimisation within TM? 
On 22 Feb 2011, at 16:37, Jonathan Halliday wrote:
> That's actually going to change your test semantics slightly. You may want to run in both optimized and non-optimized modes to ensure full coverage - some code paths may not get exercised in one or the other case.
> 
> On 02/22/2011 03:03 PM, Mircea Markus wrote:
>> Hi,
>> 
>> I've just run core's test suite with JBossTM and DummyTM.
>> The duration on my local machine are:
>> With dummy TM:  5:46.800s
>> With JBossTM:      5:23.671s
>> 
>> A explanation for JBossTM over performing  DummyTM in spite keeping a tx log on the disk (which dummyTm doesn't) is the fact that it has 2PC optimisations for situations where only one resource is registered. In other words if there is only one cache participating in the transaction (most of our tests are like that) there won't be 2RPC but only one.
>> Shall we use JBossTM as default TM for running local tests ?
>> 
>> Cheers,
>> Mircea
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>> 
> 
> -- 
> Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom.
> Registered in UK and Wales under Company Registration No. 3798903 Directors: Michael Cunningham (USA), Charlie Peters (USA), Matt Parsons (USA) and Brendan Lane (Ireland).




More information about the infinispan-dev mailing list