Skip to content

Commit

Permalink
Fixed benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
texodus committed Feb 27, 2019
1 parent 28ae925 commit 7631f0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/perspective/bench/js/bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const LIMIT = args.indexOf("--limit");

const multi_template = (xs, ...ys) => ys[0].map((y, i) => [y, xs.reduce((z, x, ix) => (ys[ix] ? z + x + ys[ix][i] : z + x), "")]);

const UNPKG_VERSIONS = ["0.2.15", "0.2.12", "0.2.11", "0.2.10", "0.2.9", "0.2.8", "0.2.7", "0.2.6", "0.2.5", "0.2.4", "0.2.3", "0.2.2", "0.2.1", "0.2.0"];
const UNPKG_VERSIONS = ["0.2.16", "0.2.15", "0.2.12", "0.2.11", "0.2.10", "0.2.9", "0.2.8", "0.2.7", "0.2.6", "0.2.5", "0.2.4", "0.2.3", "0.2.2", "0.2.1", "0.2.0"];
const UNPKG_URLS = multi_template`https://unpkg.com/@jpmorganchase/perspective@${UNPKG_VERSIONS}/build/perspective.js`;

const OLD_FORMAT_UNPKG_VERSIONS = ["0.2.0-beta.3"];
Expand Down
3 changes: 3 additions & 0 deletions packages/perspective/bench/js/browser_runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ async function* run_to_format_cases(table, config, format) {
const name = `view(${JSON.stringify(token)})`;

const view = table.view(config);
if (!view[format]) {
return;
}
await view.schema();

console.log(`Benchmarking \`${name}.${format}()\``);
Expand Down

0 comments on commit 7631f0c

Please sign in to comment.