Skip to content

Commit

Permalink
fix bench
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoji Chen committed Jul 15, 2019
1 parent 60ca4a6 commit d28ae70
Show file tree
Hide file tree
Showing 4 changed files with 1,764 additions and 523 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -37,7 +37,7 @@
"cross-spawn": "^6.0.5",
"json-diff": "^0.5.4",
"jsonlint": "^1.6.3",
"ocular-dev-tools": "0.0.22",
"ocular-dev-tools": "0.0.27",
"pre-commit": "^1.2.2",
"reify": "^0.18.1",
"walk": "^2.3.14"
Expand Down
2 changes: 1 addition & 1 deletion test/bench/browser.js
Expand Up @@ -18,4 +18,4 @@ const {_enableDOMLogging: enableDOMLogging} = require('@probe.gl/test-utils');
// tap-browser-color alternative
enableDOMLogging(true);

require('./index').default.then(window.browserTestDriver_finish);
require('./index').then(window.browserTestDriver_finish);
12 changes: 6 additions & 6 deletions test/bench/index.js
Expand Up @@ -12,15 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import {Bench} from '@probe.gl/bench';
import xvizParserBench from './parse-stream-message.bench';
import streamBufferBench from './xviz-stream-buffer.bench';
require('reify');

const {Bench} = require('@probe.gl/bench');

const suite = new Bench({
time: 100
});

xvizParserBench(suite);
streamBufferBench(suite);
require('./parse-stream-message.bench').default(suite);
require('./xviz-stream-buffer.bench').default(suite);

export default suite.run();
module.exports = suite.run();

0 comments on commit d28ae70

Please sign in to comment.