Skip to content

Instantly share code, notes, and snippets.

Avatar

Anthony Van de Gejuchte avdg

View GitHub Profile
View lotery.js
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 Jun 11, 2017
GraphQL Example to fetch pull requests information from mishoo/UglifyJS2
View pullRequests.graphql
{
repository(owner: "mishoo", name: "UglifyJS2") {
pullRequests(last: 100) {
nodes {
closed
number
}
totalCount
}
}
@avdg
avdg / Results.md
Created Apr 5, 2017
Test262 es 6 results for UglifyJS harmony branch
View Results.md
  • 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 Apr 3, 2017
Test262 es 6 results for UglifyJS harmony branch
View Results.md
  • 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 Mar 30, 2017
Test262 es 6 results for UglifyJS harmony branch
View Results.md
  • 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 Mar 17, 2017
Test262 es 6 results for UglifyJS harmony branch
View Results.md
  • 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 Mar 15, 2017
Test262 es 6 results for UglifyJS harmony branch
View Results.md
  • 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 Jan 21, 2017
Test262 es 6 results for UglifyJS harmony branch
View Results.md
  • 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',
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>
View index.html
<!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>