Skip to content

Instantly share code, notes, and snippets.

View Lodin's full-sized avatar

Vlad Rindevich Lodin

View GitHub Profile
@Lodin
Lodin / index.html
Last active March 4, 2020 10:08
for each vs filter map #jsbench #jsperf (http://jsbench.github.io/#b83e7f369a6f7c309a68bd87d7f5a1bd) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>for each vs filter map #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>
@Lodin
Lodin / index.html
Created February 18, 2020 10:45
symbol vs string property (http://jsbench.github.io/#c71181ad3112daa34cedb0b24af44e7f) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>symbol vs string property</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>
@Lodin
Lodin / index.html
Created September 8, 2019 10:28
RegExp vs toLowerCase #jsbench #jsperf (http://jsbench.github.io/#58406c8ff103f6ed885955d40861de9c) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>RegExp vs toLowerCase #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>
@Lodin
Lodin / index.html
Last active September 4, 2019 10:58
Loop with closure #jsbench #jsperf (http://jsbench.github.io/#a7dfa8e072fe66eaf2f63cee40b3ec22) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Loop with closure #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>
@Lodin
Lodin / index.html
Created April 7, 2019 11:49
for, for-of, forEach loop comparison (http://jsbench.github.io/#abf388900fe448ab9b3ffc5f10719cf9) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>for, for-of, forEach loop comparison</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>
@Lodin
Lodin / index.html
Created April 7, 2019 11:48
for, for-of, forEach loop comparison #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>for, for-of, forEach loop comparison</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>
@Lodin
Lodin / index.html
Created January 6, 2019 13:15
map spread syntax vs array.from() (http://jsbench.github.io/#d49615e81a0dbbea767953e2f805754a) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>map spread syntax vs array.from()</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>
@Lodin
Lodin / index.html
Last active January 6, 2019 14:38
map vs object entries loop performance (http://jsbench.github.io/#f6631a745e19eb03a916ebe60d19ecf8) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>map vs object entries loop performance</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>
@Lodin
Lodin / index.html
Last active December 26, 2018 13:50
String concat vs array join #jsbench #jsperf (http://jsbench.github.io/#5b3e080f0d0b693284ef9b5a8e4fed86) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>String concat vs array join #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>
@Lodin
Lodin / index.html
Last active December 17, 2018 16:50
Case string to number performance (http://jsbench.github.io/#3f43530d19a68eaba7e6b7d34eb297ab) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Case string to number performance</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>