Comments (9)
I used those benchmarks and kinda managed to make Rust go through benchmarks. Alas, the output from Rust is jumbled (I assume due to multi-threading) and the shell program doesn't correctly recognize Rust's results.
from html5ever.
Cool, can I see your scripts?
from html5ever.
Yeah. I'm was out of town for a bit. I'll need to push some changes once I'm back. I apologize for the inconvenience.
from html5ever.
No trouble at all :) I certainly have enough other things to work on...
I'll be glad to take a look whenever it's ready.
from html5ever.
@Ygg01 Ping?
from html5ever.
@nox Pong :P
Sorry, RL has a way of interfering with best laid plan of mice and men.
Anyway, this been a long time, since I experimented on this, I made it work, but the Rust console output was kinda hard to get to work with what benchmark expected (the lines came out in slightly wrong, non-deterministic order), confusing the hell out of the benchmark tool.
Also a big problem is that it's not Rust friendly tool. It's a collection of bash and python scripts, so running it via rust bench
, is kinda hard.
To make things worse, the benchmark wasn't updated in quite a while (Aug 2013).
from html5ever.
Also, take a look at myhtml and benchmarks:
results
code
Basically, this benchmark evaluates time of parsing TOP500 alexa sites in memory.
parser | myhtml | gumbo | html5ever |
---|---|---|---|
overall time | 0.50890 | 6.12951 | 4.50536 |
memory | 32120832 | 29319168 | 30715904 |
from html5ever.
So how do you want this done?
As a shell command that calls different html and parses them? Should we attempt to make our own benchmark or attempt to extend existing benchmarks?
from html5ever.
Closing this for now.
from html5ever.
Related Issues (20)
- Make async ergonomics nicer. HOT 1
- Does it supply line&column numbers for the parsed tokens? HOT 7
- This line of code causes me to print lots of annoying warnings when I used. HOT 1
- html5ever v0.24.1 incompatibilities problems HOT 4
- `html5ever::tokenizer::Tokenizer::process_token_and_continue` needs to go away HOT 3
- Using html5ever in wasm package for an isomorphic html sanitizer HOT 3
- cargo bench fails HOT 1
- How to use html5ever to find comment in html??? HOT 4
- HTML Entities cause split after the next character HOT 4
- Malformed HTML parsed differently from browsers HOT 1
- html5ever parses document in unexpected way HOT 1
- New release HOT 2
- tests fail under rust 1.77.1 to build because of rustc-test HOT 1
- xml5ever drops xml attributes with matching namespace and local names HOT 5
- Are there callbacks when processing closed labels? HOT 3
- Profile-Guided Optimization (PGO) benchmark result
- html5ever README not getting published to crates.io HOT 2
- Publish markup5ever_rcdom 0.4 HOT 2
- Cargo version of markup5ever_rcdom has old dependencies HOT 2
- Problem using new immutable API with Slab-based DOM tree HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html5ever.