Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134
Windows
Desktop
13 days ago
Test name Executions per second
DecodeURI 2664118.2 Ops/sec
DecodeURITwice 1377871.9 Ops/sec
DecodeURIThrice 923704.1 Ops/sec
HTML Preparation code:
AخA
 
1
<!--your preparation HTML code goes here-->
Script Preparation code:
 
url = 'https://example.com/test%40value/test 2'
Tests:
  • DecodeURI

     
    const result = decodeURI(url)
  • DecodeURITwice

     
    const result = decodeURI(decodeURI(url))
  • DecodeURIThrice

     
    const result = decodeURI(decodeURI(decodeURI(url)))