-
1. Re: Benchmark with Jboss Cache
belaban Jun 1, 2005 10:10 AM (in response to yos_titi)What's HPS (something per second) ?
Do you have a test case ? Please create a JIRA issue and attach the testcase and your configuration -
2. Re: Benchmark with Jboss Cache
yos_titi Jun 1, 2005 10:39 AM (in response to yos_titi)HPS - hits per seconds.
it is very simple code...
public class DistributedCacheManager {
private static TreeCacheAop cache;
private static HashMap users;
private static final Fqn fqn = new Fqn("users");
public static void init()
{
try {
cache = new TreeCacheAop();
PropertyConfigurator config = new PropertyConfigurator();
config.configure(cache, "replSync-service.xml");
cache.startService();
//if the cache is empty --> init it
if ( cache.getObject(fqn) == null){
cache.putObject(fqn, new HashMap());
}
users = (HashMap)cache.getObject(fqn);
}
catch (Exception e) {
Debugger.error("error while init cache: " ,e);
}
}
public static HashMap getCache(){ return users; }
}
and in the login process:
Integer serverID = new Integer((int)( Math.random() * 5 ));
DistributedCacheManager.put( userName, serverID ); -
3. Re: Benchmark with Jboss Cache
belaban Jun 1, 2005 11:46 AM (in response to yos_titi)If you want us to look at it, could you please submit a *complete* test case, which spits out the HPS at the end of the run ?
Thanks !