Skip to content

Benchmark HTML parsing#672

Merged
jyn514 merged 2 commits intorust-lang:masterfrom
jyn514:benchmark
Apr 1, 2020
Merged

Benchmark HTML parsing#672
jyn514 merged 2 commits intorust-lang:masterfrom
jyn514:benchmark

Conversation

@jyn514
Copy link
Copy Markdown
Member

@jyn514 jyn514 commented Apr 1, 2020

See #671, servo/html5ever#414 for rationale.

This makes the extract_head_and_body function public since I couldn't
find a cfg flag that would do so only during tests.

This does not run benchmarks in CI, but makes it easy to do so locally. I plan to run benchmarks whenever dependencies are updated in the future.

jyn514 added 2 commits March 31, 2020 20:03
See rust-lang#671,
servo/html5ever#414 for rationale.

This makes the `extract_head_and_body` function public since I couldn't
find a cfg flag that would do so only during tests.
@jyn514 jyn514 mentioned this pull request Apr 1, 2020
@Mark-Simulacrum
Copy link
Copy Markdown
Member

Looks good to me. I guess the idea is to gather benchmarks before/after changes locally?

Feel free to merge.

@jyn514
Copy link
Copy Markdown
Member Author

jyn514 commented Apr 1, 2020

I guess the idea is to gather benchmarks before/after changes locally?

Right, this would give me some idea of 'is rendering faster or slower after switching to kuchiki' without having to deploy to prod and possibly have the site go down again.

@jyn514 jyn514 merged commit 05a6190 into rust-lang:master Apr 1, 2020
@jyn514 jyn514 deleted the benchmark branch April 1, 2020 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants