sky10p / regexh-contributions

Ayuda a traducer la app de regex a más idiomas
9 stars 4 forks source link

Imprecise benchmark #38

Open Palloxin opened 1 week ago

Palloxin commented 1 week ago

Screenshot_253312

Screenshot_202_1

Why does it show the time in microseconds if the slowest is 6ms?

I gigantified the string for a reason and yet it's still.showed in microseconds. I wonder what the app is benchmarking.

sky10p commented 3 days ago

I have been investigating the differences in processing times. The milliseconds shown reflect not only the time needed to match the regular expression but also the additional processing my app performs to retrieve explanations for each subexpression, which increases the total time. In contrast, Berkmanch only measures the time it takes to find matches within the string.

Palloxin commented 3 days ago

Firefox, mobile, regex101. same regex same string Screenshot_208_1 I am more inclined to believe 6ms is the real measurement than the microseconds one.