Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
regexp benchmark
(version: 0)
测试正则不同类型下匹配速度
Comparing performance of:
提取首字母 vs 直接写
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
let a='tesv'
Tests:
提取首字母
/t(est|es|e)?.*/.exec(a)
直接写
/(test|tes|te|t).*/.exec(a)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
提取首字母
直接写
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Comments
Confirm delete:
Do you really want to delete benchmark?