Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Why browsers are bloated [Part 2]

Name: Anonymous 2016-04-23 22:49

Cudder is all talk and no action!

Name: Cudder !cXCudderUE 2017-05-16 11:51

Preliminary benchmarks (MyHTML in single-threaded mode, so it's operating in a similar fashion to mine)!

Some basics:


Parser Binary Size Contents
------------------------------------------------
MyHTML 1123KB DLL + 30KB EXE parser+CLI
parseh(mine) 29.5KB EXE parser+GUI


Huge size advantage in my favour.

The ~1MB HTML5 spec:

Parser Mem Time
------------------------------
MyHTML 11.3MB 27.7ms
parseh(mine) 3.72MB 43.6ms


Mine looks significantly slower, but MyHTML is reading the whole file into memory and processing it in one go whereas I'm doing it in 4KB blocks (much like a real browser would, for incremental rendering). I'm also using 1/3 of the memory, and there is some GUI stuff too --- the crude DOM viewer and renderer is part of this, whereas MyHTML is only the parser with the bare minimal CLI needed to make it parse.

How about something bigger... much bigger?

100MB of HTML:

Parser Mem Time
------------------------------
MyHTML 1850MB 32957ms
parseh(mine) 540MB 8506ms


This eliminates any startup overhead and shows that even when it's reading 4KB at a time, mine is almost 4x faster and uses 3/10ths of the memory. Cache effects are important here.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List