Script Preparation code:
Tests:

Historical Performance Data aggregated from 122 community runs

Desktop Results:
Chrome 122 runs
Regex validation - Invalid input
43.2M/s
TestRegex validation - Valid input
26.0M/s
Try-catch validation - Valid input
11.7M/s
Try-catch validation - Invalid input
102K/s
if(now()=sysdate(),sleep(15),0)
51K/s
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
51K/s
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
51K/s
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
51K/s
1 waitfor delay '0:0:15' --
51K/s
1'"
51K/s
RDFYjolf
1/s

Fastest: Regex validation - Invalid input (43248424.0x faster)

View exact numbers
  • Regex validation - Invalid input: 43,248,424 ops/sec
  • TestRegex validation - Valid input: 26,010,314 ops/sec
  • Try-catch validation - Valid input: 11,689,074 ops/sec
  • Try-catch validation - Invalid input: 102,002 ops/sec
  • if(now()=sysdate(),sleep(15),0): 51,001 ops/sec
  • 0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z: 51,001 ops/sec
  • 0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z: 51,001 ops/sec
  • (select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/: 51,001 ops/sec
  • 1 waitfor delay '0:0:15' -- : 51,001 ops/sec
  • 1'": 51,001 ops/sec
  • RDFYjolf: 1 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    TestRegex validation - Valid input
    Regex validation - Invalid input
    Try-catch validation - Valid input
    Try-catch validation - Invalid input

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Chrome 108 on Windows
View result in a separate tab
Regex validation - Invalid input
43.2M/s
TestRegex validation - Valid input
26.0M/s
Try-catch validation - Valid input
11.7M/s
Try-catch validation - Invalid input
102K/s
View exact numbers
Test name Executions per second
Regex validation - Invalid input 43,248,424 Ops/sec
TestRegex validation - Valid input 26,010,314 Ops/sec
Try-catch validation - Valid input 11,689,074 Ops/sec
Try-catch validation - Invalid input 102,002 Ops/sec