Skip to content

Instantly share code, notes, and snippets.

View derekantrican's full-sized avatar

Derek Antrican derekantrican

View GitHub Profile
@derekantrican
derekantrican / index.html
Last active May 10, 2021 23:45 — forked from RubaXa/index.html
String#includes vs. String#indexOf vs. RegExp (https://jsbench.github.io/#e7227d9e538d734f61129d449df3de9b) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>String#includes vs. String#indexOf vs. RegExp</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>