On 2013-08-19 22:12, Dominique Pellé wrote:

> In this example, the speed up is +37.5%. Useful speed up, but at the
> same time I was hoping for more speed up given that I have 4
> cores on my i5 laptop.

I just tried this: I added performance measuring around just the part 
that's really parallel, i.e. I added System.currentTimeMillis() calls 
around this line in JLanguageTool:

final List<RuleMatch> ruleMatches = performCheck(analyzedSentences, 
sentences, allRules, paraMode);

Using the PerformanceTest class with a 30KB file, I get these numbers 
after warm-up:

1 thread : 1800ms
2 threads: 1200ms
4 threads: 950ms

So for the part that is really parallelized I get twice the speed. 
Considering that my CPU only has two real cores and the other two are 
kind of virtual cores added by hyper-threading, maybe that's just the 
expected behaviour?

Regards
  Daniel

-- 
http://www.danielnaber.de

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Languagetool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to