I profiled a slow startup and most time is consumed in 
RegexPrefixCapturingPatternParser.parseStep. 

Also PrintStreamStepMonitor.stepMatchesType uses a lot of time in 
MessageFormat.format() and then ignores the output (SilentStepMonitor).

I think both are called (canidate steps) * (number of steps in stories) 
times.

Class    Sample Count    Percentage(%)
java.util.regex.Pattern    1.002    31,579
java.util.regex.Matcher    209    6,587
java.text.MessageFormat    167    5,263
java.util.regex.Pattern$Start    158    4,98
java.util.regex.Pattern$Curly    150    4,727

-- 
You received this message because you are subscribed to the Google Groups 
"JBehave User" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/jbehave-user/bdc2270e-ff54-4247-9c67-baf93568e765%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to