Skip to content

Instantly share code, notes, and snippets.

View jridgewell's full-sized avatar
😬

Justin Ridgewell jridgewell

😬
  • New York, NY
  • 21:17 (UTC -05:00)
View GitHub Profile
@jridgewell
jridgewell / id.pub
Last active July 7, 2025 00:26
ssh key
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEcc1e8E01eqynm14al1SY2diWbcNZDlTXjBf6W7erjG
@jridgewell
jridgewell / index.html
Created August 11, 2022 23:40
Class Fields vs This Assignment vs Object.defineProperty(this) (https://jsbench.github.io/#659bbd90bd6534565ecd10a4721d1565) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Class Fields vs This Assignment vs Object.defineProperty(this)</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>
@jridgewell
jridgewell / index.html
Created August 1, 2022 21:29
String.replace vs RegExp.exec loop (https://jsbench.github.io/#0f971d52c8a86eb2c3e5983f5e8ebd0a) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>String.replace vs RegExp.exec loop</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>
@jridgewell
jridgewell / index.html
Created January 25, 2022 09:08
new Array vs Int32Array.subarray (http://jsbench.github.io/#c5efc58acd31b29a5c2a454fd35bff9c) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>new Array vs Int32Array.subarray</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>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>defineProperty vs set</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>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>TextEncoder vs charCodeAt</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>
@jridgewell
jridgewell / index.html
Created March 18, 2021 20:59
Stable sorting #jsbench #jsperf (https://jsbench.github.io/#f32d70e88170ab4e165ac1f7f30df163) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Stable sorting #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>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>https://twitter.com/fenomas/status/1364927834901291011 #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>
@jridgewell
jridgewell / index.html
Last active March 1, 2024 05:54
Rest-Spread vs Rest-Apply vs Arguments-Spread vs Arguments-Apply (https://jsbench.github.io/#d18c13bd3feb7bfa18a02ef6fa46fc40) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Rest-Spread vs Rest-Apply vs Arguments-Spread vs Arguments-Apply</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>
@jridgewell
jridgewell / index.html
Last active February 10, 2021 00:36
HTML Entity Encoding / Escapement #jsbench #jsperf (https://jsbench.github.io/#62ffe7cc62fe8913ef4c89991e034169) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>HTML Entity Encoding / Escapement #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>