Created
March 17, 2015 14:58
-
-
Save moznion/4cfb51158548a1d0691a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.geso.routes; | |
import java.util.LinkedHashMap; | |
public class PathRouteBench { | |
public void benchPathRoute() { | |
for (int i = 0; i < 1_000_000; ++i) { | |
PathRoute<String> route = new PathRoute<String>("/foo/*", "Detail"); | |
LinkedHashMap<String, String> captured = new LinkedHashMap<>(); | |
boolean matched = route.match("/foo/bar/baz", captured); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment