-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hi,
How did you get "4+ million URLs per second"?
I have tried parsing 10.000.000 urls, it took 75 416 ms
final int count = 10000000;
val urls = new ArrayList<String>(count);
for (int i = 0; i < count; i++) {
urls.add("http://user@domain" + i + ".com:12345/a/great/path/?with=query&unicode_parameter=😊¬hing#cool");
}
long start = System.currentTimeMillis();
for (String url : urls) {
com.anthonynsimon.url.URL.parse(url);
}
System.out.println("time: " + (System.currentTimeMillis() - start) + " ms");
Metadata
Metadata
Assignees
Labels
No labels