Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Slow parsing #13

@laymain

Description

@laymain

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=😊&nothing#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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions