Skip to content

Instantly share code, notes, and snippets.

@milahu
milahu / index.html
Last active October 5, 2020 16:30
test if array index exists by value or array length #jsbench #jsperf (http://jsbench.github.io/#8d011d47ee4a1cfda2e94b07ca28d351) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>test if array index exists by value or array length #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>
@milahu
milahu / index.html
Last active October 5, 2020 15:58
performance of different loop types #jsbench #jsperf (http://jsbench.github.io/#6f65c587af9277325bcda0e69ba44d5f) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>performance of different loop types #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>
@milahu
milahu / skibadee.js
Created January 19, 2020 17:15
show all additions in wikipedia page history
// show all additions in wikipedia page history
//
// get the XML file from
// https://en.wikipedia.org/wiki/Special:Export
//
// Add pages manually:
// Skibadee
//
// [ ] Include only the current revision, not the full history
// ^ uncheck this