Dear Storm Developers,


My name is Ron and I have been testing with Storm for our lab project.


And when I use Storm bolt to perform some computational task I found that the 
time it took to run the computation outside of Storm is approximately 10 times 
less than that inside a Storm bolt execute() method.


And I also tried this small piece of snippet inside the execute() method of a 
bolt:

Random rd = new Random(System.currentTimeMillis());
double  count =rd.nextDouble();
for( int i=0;i <50000000;i++ ) {
    count *= rd.nextDouble();
}

Above code took around 1000 ms to finish inside Storm, while only took around 
10 ms to finish outside of the Storm enviroment.


Would you please advise on this? Or is this even heavy computational task for a 
Storm bolt?


Thanks!


Ron

Reply via email to