Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
More advanced algorithm
  • Loading branch information
j-f1 committed Sep 25, 2020
commit b2bb780a316150c424ab21565e101f2f827c8a70
14 changes: 9 additions & 5 deletions ci/perf-tester/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@ const {
toBool,
} = require("./utils.js");

const benchmarkCount = 4;
const runBunchmarks = () =>
Promise.all(Array(benchmarkCount).fill().map(runBenchmark)).then(
averageBenchmarks
);
const benchmarkParallel = 2;
const benchmarkSerial = 2;
const runBunchmarks = async () => {
for (let i = 0; i < benchmarkSerial; i++) {
await Promise.all(
Array(benchmarkParallel).fill().map(runBenchmark)
).then(averageBenchmarks);
}
};

async function run(octokit, context, token) {
const { number: pull_number } = context.issue;
Expand Down