SAN FRANCISCO — Shopping around for the best venue to file a patent suit? Law professor Mark Lemley, director of the Stanford Program in Law, Science, and Technology, may have made the task a little easier.

He’s analyzed 21,667 patent suits filed since 2000 in a new report ” Where to File Your Patent Case,” published in the fall issue of the AIPLA Quarterly Journal. He looked at various factors, such as win rates for both plaintiffs and defendants and how long it takes different courts to resolve cases. And the results are surprising.