From 5f2ca81e4597db84e7d3b0203edad230eba339a9 Mon Sep 17 00:00:00 2001 From: Ib Green Date: Sat, 17 Aug 2024 11:01:22 -0400 Subject: [PATCH] chore: restore bench tests --- modules/core/test/bench.ts | 14 +++++++------- modules/geospatial/test/bench.ts | 2 +- test/bench/modules.bench.ts | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/core/test/bench.ts b/modules/core/test/bench.ts index 71f49b88..498971b0 100644 --- a/modules/core/test/bench.ts +++ b/modules/core/test/bench.ts @@ -3,14 +3,14 @@ // Copyright (c) vis.gl contributors // Copyright (c) 2015 - 2017 Uber Technologies, Inc. -import javascriptBench from './lib/javascript.bench'; -import commonBench from './lib/common.bench'; +import {javascriptBench} from './lib/javascript.bench'; +import {commonBench} from './lib/common.bench'; -// import classesBench from './classes/classes.bench'; -import vector2Bench from './classes/vector2.bench'; -import vector3Bench from './classes/vector3.bench'; -import vector4Bench from './classes/vector4.bench'; -import matrix4Bench from './classes/matrix4.bench'; +// import {classesBench} from './classes/classes.bench'; +import {vector2Bench} from './classes/vector2.bench'; +import {vector3Bench} from './classes/vector3.bench'; +import {vector4Bench} from './classes/vector4.bench'; +import {matrix4Bench} from './classes/matrix4.bench'; export function coreBench(suite, addReferenceBenchmarks) { // classesBench(suite, addReferenceBenchmarks); diff --git a/modules/geospatial/test/bench.ts b/modules/geospatial/test/bench.ts index 089003d0..128e5c1f 100644 --- a/modules/geospatial/test/bench.ts +++ b/modules/geospatial/test/bench.ts @@ -15,7 +15,7 @@ import { toCartographicFromRadians } from '../src/type-utils'; -import ellipsoidBench from './ellipsoid/ellipsoid.bench'; +import {ellipsoidBench} from './ellipsoid/ellipsoid.bench'; class ObjectVector { x: number; diff --git a/test/bench/modules.bench.ts b/test/bench/modules.bench.ts index 50a3c94d..87c6fd78 100644 --- a/test/bench/modules.bench.ts +++ b/test/bench/modules.bench.ts @@ -3,10 +3,10 @@ // @ts-expect-error tsconfig configuration issue? import type {Bench} from '@probe.gl/bench'; -import coreBench from '../../modules/core/test/bench'; -import geospatialBench from '../../modules/geospatial/test/bench'; -import cullingBench from '../../modules/culling/test/bench'; -import polygonBench from '../../modules/polygon/test/bench'; +import {coreBench} from '../../modules/core/test/bench'; +import {geospatialBench} from '../../modules/geospatial/test/bench'; +import {cullingBench} from '../../modules/culling/test/bench'; +import {polygonBench} from '../../modules/polygon/test/bench'; export default function addBenchmarks(suite: Bench, addReferenceBenchmarks: boolean): Bench { coreBench(suite, addReferenceBenchmarks);