Skip to content

Commit 525516d

Browse files
committed
Merge branch 'refactor-webdriver' of https://github.com/nakrovati/js-framework-benchmark into nakrovati-refactor-webdriver
2 parents 15a1524 + 020d62e commit 525516d

33 files changed

+2731
-1602
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ output/
1212

1313
# Webdriver-ts
1414
webdriver-ts/results.json
15+
webdriver-ts/unittests/
1516
webdriver-ts/traces/
1617

1718
# Webdriver-ts-results

.prettierrc.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
{
2-
"trailingComma": "es5"
2+
"printWidth": 100,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": false,
7+
"quoteProps": "as-needed",
8+
"jsxSingleQuote": false,
9+
"trailingComma": "es5",
10+
"bracketSpacing": true,
11+
"bracketSameLine": false,
12+
"arrowParens": "always",
13+
"proseWrap": "preserve",
14+
"endOfLine": "lf",
15+
"singleAttributePerLine": false
316
}

webdriver-ts/csv_export.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
var exec = require('child_process').execSync;
2-
var fs = require('fs');
3-
var path = require('path');
4-
var yargs = require('yargs');
1+
var exec = require("child_process").execSync;
2+
var fs = require("fs");
3+
var path = require("path");
4+
var yargs = require("yargs");
55

6-
let directories = process.argv.length<=2 ? [] : process.argv.slice(2,process.argv.length);
6+
let directories = process.argv.length <= 2 ? [] : process.argv.slice(2, process.argv.length);
77

88
console.log("directories", directories);
99

10-
if (directories.length<=1) {
10+
if (directories.length <= 1) {
1111
console.log("ERROR: Please specify the directories");
1212
process.exit(1);
1313
}
@@ -30,18 +30,18 @@ for (let dir of directories) {
3030

3131
for (let dir of directories) {
3232
for (let bench of benchmarks) {
33-
map.get(dir).set(bench, JSON.parse(fs.readFileSync(path.join(dir, bench), 'utf8')));
33+
map.get(dir).set(bench, JSON.parse(fs.readFileSync(path.join(dir, bench), "utf8")));
3434
}
3535
}
3636

37-
let output = ';';
38-
output += directories.join(";")+"\n";
37+
let output = ";";
38+
output += directories.join(";") + "\n";
3939
for (let bench of benchmarks) {
4040
output += bench + ";";
4141
for (let dir of directories) {
42-
output += map.get(dir).get(bench).median +";"
42+
output += map.get(dir).get(bench).median + ";";
4343
}
4444
output += "\n";
45-
}
45+
}
4646

4747
console.log(output);

0 commit comments

Comments
 (0)