kkebo / zyphy

Zyphy is (or will be) a fast web browser engine written in Swift.
MIT License
4 stars 1 forks source link

[Tokenizer] Use bigger HTML for performance benchmarks #17

Closed kkebo closed 4 months ago

kkebo commented 10 months ago

I'm currently measuring performance by using the following small HTML, but I should replace it with a bigger HTML for more accurate benchmarks.

https://github.com/kkk669/zyphy/blob/b95c9d11fe4641dba3257c9e75ed412fb492049e/Benchmarks/Benchmarks/MyBenchmark/MyBenchmark.swift#L15-L26

And I would like to compare Zyphy's tokenizer with other high-performance HTML tokenizers if possible.

kkebo commented 10 months ago

In the case of html5ever,

https://github.com/servo/html5ever/blob/master/html5ever/benches/html5ever.rs

kkebo commented 10 months ago

In the case of html5gum,

https://github.com/untitaker/html5gum/blob/main/benches/patterns.rs

kkebo commented 10 months ago

In the case of html-parse,

https://github.com/bgamari/html-parse

kkebo commented 10 months ago

In the case of html-tokenizer,

https://github.com/greim/html-tokenizer/blob/master/benchmark/benchmark.js

kkebo commented 8 months ago

I think that I don't need a large HTML for the benchmark test of Tokenizer because other libraries also use small pieces of HTML for that purpose. Moreover, I can do the benchmark test for the whole browser engine not only for Tokenizer when I implement the main module.

Anyway, I should finish #39 first.