Skip to content

Commit

Permalink
clean up the bench file
Browse files Browse the repository at this point in the history
  • Loading branch information
alekzvik committed Dec 3, 2024
1 parent e19e7ce commit efd7910
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions modules/las/test/las.bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,18 @@ import {LAZPerfLoader, LAZRsLoader} from '@loaders.gl/las';
import {fetchFile, load} from '@loaders.gl/core';

const LAZ_URL = '@loaders.gl/las/test/data/indoor.laz';
// const GEO_PARQUET_URL = '@loaders.gl/parquet/test/data/geoparquet/airports.parquet';

export async function lazBench(suite) {
suite.group('ParquetLoader');
suite.group('LasLoader');

const response = await fetchFile(LAZ_URL);
const arrayBuffer = await response.arrayBuffer();

suite.addAsync('load(LAZPerfLoader) - LAZ load', {multiplier: 40000, unit: 'rows'}, async () => {
suite.addAsync('load(LAZPerfLoader) - LAZ load', {}, async () => {
await load(arrayBuffer, LAZPerfLoader, {worker: false});
});

suite.addAsync('load(LAZRsLoader) - LAZ load', {multiplier: 40000, unit: 'rows'}, async () => {
suite.addAsync('load(LAZRsLoader) - LAZ load', {}, async () => {
await load(arrayBuffer, LAZRsLoader, {worker: false});
});
}

0 comments on commit efd7910

Please sign in to comment.