Verify all input bytes are read; add timing info.

Seeing 80~ ms in desktop version; 35~ seconds in browser version.