Skip to content

Commit 83a5c5e

Browse files
committed
Note in benchmark README
1 parent 6b262af commit 83a5c5e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tools/benchmarks/README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,15 @@ You can also run them using py.test with extra args:
1111

1212
$ py.test --benchmark-warmup=on runtime.py -k interpolation
1313

14-
To profile the benchmark suite, we recommend py-spy as a
15-
good tool. Install py-spy: https://github.com/benfred/py-spy
14+
The “plural form” tests are the cases where GNU gettext performs most
15+
favourably, partly because it uses a much simpler (and incorrect) function for
16+
deciding plural forms, while we use the more complex ones from CLDR. You can
17+
exclude those by doing:
18+
19+
$ py.test --benchmark-warmup=on runtime.py -k 'not plural'
20+
21+
To profile the benchmark suite, we recommend py-spy as a good tool. Install
22+
py-spy: https://github.com/benfred/py-spy
1623

1724
Then do something like this to profile the benchmark. Depending on your
1825
platform, you might need to use `sudo`.

0 commit comments

Comments
 (0)