Skip to content

Instantly share code, notes, and snippets.

View avdg's full-sized avatar

Anthony Van de Gejuchte avdg

View GitHub Profile
@avdg
avdg / lotery.js
Last active October 12, 2017 20:37
Lotery
var probabilities = [500, 200, 50, 5];
var iterations = 2000;
var results = [];
next:
for (let i = 0; i < iterations; i++) {
let probability = Math.floor(Math.random() * 1000);
let j = 0;
@avdg
avdg / pullRequests.graphql
Created June 11, 2017 18:43
GraphQL Example to fetch pull requests information from mishoo/UglifyJS2
{
repository(owner: "mishoo", name: "UglifyJS2") {
pullRequests(last: 100) {
nodes {
closed
number
}
totalCount
}
}
@avdg
avdg / Results.md
Created April 5, 2017 21:42
Test262 es 6 results for UglifyJS harmony branch
  • Uglify checkout c20bb99a62ad036368569bd89b934f52258429cd (harmony)
  • Test262 checkout 5da6f981e9c6eb6d8af9ad8be737fb2245cf2fdb (master)

process.versions:

{ http_parser: '2.7.0',
  node: '7.8.0',
  v8: '5.5.372.43',
 uv: '1.11.0',
@avdg
avdg / Results.md
Created April 3, 2017 13:59
Test262 es 6 results for UglifyJS harmony branch
  • Uglify checkout 35bae3fcd061cf736878b1005df62de15b727224 (harmony)
  • Test262 checkout 5da6f981e9c6eb6d8af9ad8be737fb2245cf2fdb (master)

process.versions:

{ http_parser: '2.7.0',
  node: '7.8.0',
  v8: '5.5.372.43',
 uv: '1.11.0',
@avdg
avdg / Results.md
Created March 30, 2017 12:52
Test262 es 6 results for UglifyJS harmony branch
  • Uglify checkout 12b56d9b48f7510afbb86327579a65efb5c3e171 (harmonyWith1701)
  • Test262 checkout 5da6f981e9c6eb6d8af9ad8be737fb2245cf2fdb (master)

process.versions:

{ http_parser: '2.7.0',
  node: '7.8.0',
  v8: '5.5.372.43',
 uv: '1.11.0',
@avdg
avdg / Results.md
Created March 17, 2017 14:45
Test262 es 6 results for UglifyJS harmony branch
  • Uglify checkout 2fd86d3cb02c2bcde81633c0096b308e2809ea00 (harmony)
  • Test262 checkout e4bbdba1059a871294dd25d305e4cab4b9c89f9e (master)

process.versions:

{ http_parser: '2.7.0',
  node: '7.7.3',
  v8: '5.5.372.41',
 uv: '1.11.0',
@avdg
avdg / Results.md
Created March 15, 2017 22:26
Test262 es 6 results for UglifyJS harmony branch
  • Uglify checkout 2fd86d3cb02c2bcde81633c0096b308e2809ea00 (harmony)
  • Test262 checkout e4bbdba1059a871294dd25d305e4cab4b9c89f9e (master)

process.versions:

{ http_parser: '2.7.0',
  node: '7.4.0',
  v8: '5.4.500.45',
 uv: '1.10.1',
@avdg
avdg / Results.md
Created January 21, 2017 17:19
Test262 es 6 results for UglifyJS harmony branch
  • Uglify checkout 52ce9a333c78ba372a995f56c3b0352a7b08f6e8 (harmony)
  • Test262 checkout d13565ab05d6ba9e343a405bc02e45c658b60a68 (master)

process.versions:

{ http_parser: '2.7.0',
  node: '7.4.0',
  v8: '5.4.500.45',
 uv: '1.10.1',
<!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>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Array</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>