Skip to content

Instantly share code, notes, and snippets.

@dtjohnson
dtjohnson / index.html
Last active Jan 13, 2017
object vs array lookup #jsbench #jsperf (http://jsbench.github.io/#854fcaf4dd00bf49d30ba1829c59b18b) #jsbench #jsperf
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>object vs array lookup #jsbench #jsperf</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>