Browse Source

fix other files

Saul Shanabrook 4 years ago
parent
commit
e4d69e6205

+ 1 - 1
benchmarks/package.json

@@ -6,7 +6,7 @@
     "build:jlab": "cd .. && jlpm run build",
     "build:benchmark": "tsc",
     "start:jlab": "fkill -s :9999 && cd .. && jupyter lab --dev --no-browser --port 9999 --LabApp.password= --LabApp.token=",
-    "start:benchmark": "wait-on http-get://localhost:9999/lab && node --experimental-modules --es-module-specifier-resolution=node lib/index.js",
+    "start:benchmark": "wait-on http-get://localhost:9999/lab && node lib/index.js",
     "start:all": "npm-run-all --parallel start:jlab start:benchmark --race",
     "start:analysis": "vl2png analysis.vl.json > analysis.png && open analysis.png",
     "start:compare": "node lib/compare.js",

+ 5 - 5
benchmarks/src/index.ts

@@ -1,10 +1,10 @@
 /**
  * Runs a number of benchmarks and saves the results to the
  */
-import child_process from 'child_process';
-import fs from 'fs';
-import playwright from 'playwright';
-import util from 'util';
+import * as child_process from 'child_process';
+import * as fs from 'fs';
+import * as playwright from 'playwright';
+import * as util from 'util';
 import NotebookType from './notebookType';
 
 const DATA_PATH = process.env['BENCHMARK_OUTPUT'] || 'out.csv';
@@ -15,7 +15,7 @@ const MAX_N = 100;
 // The number of different n's to try out
 const NUMBER_SAMPLES = 20;
 // How many times to switch between each notebook
-const SWITCHES = 5;
+const SWITCHES = 10;
 
 /**
  * Max time to stop testing if mean of previous sample was > this.

+ 1 - 1
benchmarks/src/notebookType.ts

@@ -1,4 +1,4 @@
-import playwright from 'playwright';
+import * as playwright from 'playwright';
 
 type NotebookType = {
   label: string;

+ 1 - 1
benchmarks/src/waitForPlotly.ts

@@ -1,4 +1,4 @@
-import playwright from 'playwright';
+import * as playwright from 'playwright';
 
 /**
  * Wait for width to be changed to greater than the default of 700px which happens after rendering is done.