Quoted printable decoding

Benchmark created by Ralph Holzmann on


Setup

var input = "=EC=95=88=EB=85=95=ED=95=98=EC=84=B8=EC=9A=94";

Test runner

Ready to run.

Testing in
TestOps/sec
decodeURIComponent
decodeURIComponent(input.replace(/=/g,'%'))
ready
Manual
decodeURIComponent( escape( input.replace(/=([A-Z0-9]{2}|\n)?/g, function(match, hex) { return hex == "\n" ? "" : String.fromCharCode( parseInt(hex, 16)) })))
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.

  • Revision 1: published by Ralph Holzmann on