Skip to content

Instantly share code, notes, and snippets.

Avatar

Ganesha reekoheek

  • PT Sagara Xinix Solusitama
  • Jakarta
View GitHub Profile
@reekoheek
reekoheek / vite_wtr_repro_patch.diff
Created Jul 16, 2021
vite-web-test-runner-plugin sourcemap bug repro
View vite_wtr_repro_patch.diff
diff --git a/examples/react/package.json b/examples/react/package.json
index a2e752b..9176945 100644
--- a/examples/react/package.json
+++ b/examples/react/package.json
@@ -6,7 +6,7 @@
"dev": "vite",
"build": "vite build",
"serve": "vite preview",
- "test": "web-test-runner \"src/**/*.test.jsx\" --coverage"
+ "test": "web-test-runner \"src/**/*.test.ts\" --coverage"
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Untitled benchmark</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>
@reekoheek
reekoheek / index.html
Last active Sep 18, 2016
obj vs setPrototypeOf vs __proto__ vs new Obj #jsbench #jsperf (http://jsbench.github.io/#31557d49a265451ff356a56fbdfd7df5) #jsbench #jsperf
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>obj vs setPrototypeOf vs __proto__ vs new Obj #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>
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>const vs var #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>
@reekoheek
reekoheek / index.html
Last active Sep 16, 2016
new vs mixin vs object.create #jsbench #jsperf (http://jsbench.github.io/#1495d021336579c3e8f5b7dc83fd7dbe) #jsbench #jsperf
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>new vs mixin vs object.create #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>
@reekoheek
reekoheek / index.html
Created Sep 12, 2016
benchmark several object creation methods (http://jsbench.github.io/#42e7a8f01e4ad334354b764a1a64ae68) #jsbench #jsperf
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>benchmark several object creation methods</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>
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>iteration</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>
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>y === typeof x vs typeof x === y</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>
@reekoheek
reekoheek / index.html
Last active Jun 22, 2018
Object.getOwnPropertyNames vs Object.keys #jsbench #jsperf (http://jsbench.github.io/#b6ea5f52a779ebac10bd7feb1e186482) #jsbench #jsperf
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Object.getOwnPropertyNames vs Object.keys #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>
@reekoheek
reekoheek / index.html
Last active Sep 7, 2016
String#endsWith(x) vs String#substr(-1) === x vs x === String#substr(-1) #jsbench #jsperf (http://jsbench.github.io/#73ef9720ef1c9e60ece4ee07fddd39a3) #jsbench #jsperf
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>String#endsWith(x) vs String#substr(-1) === x vs x === String#substr(-1) #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>