Skip to content

Instantly share code, notes, and snippets.

View sschmidTU's full-sized avatar

Simon sschmidTU

View GitHub Profile
@sschmidTU
sschmidTU / index.html
Created September 8, 2021 17:03 — forked from denilsonsa/index.html
getElementsByClassName vs getElementById vs querySelector (http://jsbench.github.io/#6fdcc5a726220a85eb7c6a00e955d532) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>getElementsByClassName vs getElementById vs querySelector</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>