On 07/05/2017 08:36 AM, Emilio Cobos Álvarez wrote:
On 07/05/2017 10:19 AM, Henri Sivonen wrote:
Do we have a gtest analog for local performance testing? That is,
something that makes it easy to microbenchmark libxul methods?
For CSS parsing there is a benchmark using MOZ_GTEST_BENCH[1].
From grepping a bit seems like we also use it for testing stuff like
stripping whitespace on a string and such, is something like that what
you're looking for?
I'm not sure how easy it is (if possible at all) to test it on automation.
These are posted to PerfHerder, although they are pretty noisy in my
experience since we only run tests once before reporting the numbers.
Not sure if we have used the historical reporting that much in the past.
Another useful way to use these macros is in try pushes where you can
ask for gtest runs and get performance numbers before and after a push
on different compilers that you may not have available locally for testing.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform