Skip to content

Instantly share code, notes, and snippets.

View wooandoo's full-sized avatar

Frédéric Mascaro wooandoo

View GitHub Profile
@wooandoo
wooandoo / index.html
Last active April 5, 2021 10:26
error management #jsbench #jsperf (http://jsbench.github.io/#b40e9f4f2516c0b6aa59d0c65b12515e) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>error management #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>async vs promise</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>
@wooandoo
wooandoo / index.html
Created February 3, 2021 08:19
direct function vs binded function (http://jsbench.github.io/#796b0d300152908f9b51f2c030ecf97f) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>direct function vs binded function</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>
@wooandoo
wooandoo / index.html
Created December 21, 2020 09:24
shallow copy of object in different sizes (http://jsbench.github.io/#038f2e9cc1f715afa8ee89de7e02983e) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>shallow copy of object in different sizes</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>
@wooandoo
wooandoo / index.html
Last active December 21, 2020 08:19
direct mutable / immutable action vs future like vs promise #jsbench #jsperf (http://jsbench.github.io/#b2ed03a6ce1d6babb536983d5e75acef) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>direct mutable / immutable action vs future like vs promise #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>
@wooandoo
wooandoo / index.html
Last active December 4, 2020 08:14
functor vs local variable #jsbench #jsperf (https://jsbench.github.io/#6d9fb88c091a5be96b554f041270b0b2) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>functor vs local variable #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>
@wooandoo
wooandoo / index.html
Last active December 4, 2020 08:04
call function by matching #jsbench #jsperf (https://jsbench.github.io/#823cf0defbb913bb03faef873a8638dc) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>call function by matching #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>match string vs number</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>
@wooandoo
wooandoo / index.html
Last active November 11, 2020 09:11
direct vs pipe #jsbench #jsperf (http://jsbench.github.io/#682a0ae3a788672fd660194c65f5499e) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>direct vs pipe #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>sync vs async (promise)</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>