Skip to content

Instantly share code, notes, and snippets.

View warpech's full-sized avatar
🤹‍♂️
Code sweet code

Marcin Warpechowski warpech

🤹‍♂️
Code sweet code
View GitHub Profile
@warpech
warpech / index.html
Last active August 28, 2020 17:50
String vs number coords #jsbench #jsperf (http://jsbench.github.io/#d0a336a4f16d10a8ebdd078c50b52418) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>String vs number coords #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>
@warpech
warpech / index.html
Created August 27, 2020 23:59
Try/catch impact on performance (http://jsbench.github.io/#3b9008504d3e8d04b6edd7a32fb2bbc5) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Try/catch impact on 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>
@warpech
warpech / index.html
Last active August 27, 2020 23:45
Split cell #jsbench #jsperf (http://jsbench.github.io/#f57192e09d437cdcf2d828b8cd63c030) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Split cell #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>
@warpech
warpech / index.html
Created August 27, 2020 23:21
Uncached vs cached regex (http://jsbench.github.io/#6b5293fc02cc9860d627aece5eb8ca4c) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Uncached vs cached regex</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>
@warpech
warpech / index.html
Last active July 4, 2020 19:39
Parse big JS object vs JSON #jsbench #jsperf (http://jsbench.github.io/#580c4fc690f9f68fed6331235083da0c) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Parse big JS object vs JSON #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>
@warpech
warpech / index.html
Last active July 2, 2020 09:35
Type conversion #jsbench #jsperf (http://jsbench.github.io/#9b0354f59444b0ee1c882e19594464f9) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Type conversion #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>
https://github.com/scala/scala-dev/issues/338
https://github.com/softdevteam/krun
https://github.com/JuliaCI/BenchmarkTools.jl/blob/master/doc/linuxtips.md
https://www.sosy-lab.org/research/pub/2019-STTT.Reliable_Benchmarking_Requirements_and_Solutions.pdf
https://github.com/sosy-lab/benchexec/blob/master/doc/INDEX.md
@warpech
warpech / index.html
Last active January 27, 2020 12:53
Array of primitives vs array of objects (function call in a loop) #jsbench #jsperf #jsbench #jsperf (http://jsbench.github.io/#fcd24e40cdf304acac56efa827e547c9) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Array of primitives vs array of objects (function call in a loop) #jsbench #jsperf #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>
@warpech
warpech / index.html
Last active January 27, 2020 12:45
Array of primitives vs array of objects (construction) #jsbench #jsperf (http://jsbench.github.io/#9894e720690369a0076598189fdbee36) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Array of primitives vs array of objects (construction) #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>Property vs getter</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>