Skip to content

Commit

Permalink
Repair benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
steveluscher committed Oct 7, 2024
1 parent d0e8324 commit 2ccc1ea
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/codecs-core/src/__benchmarks__/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { webcrypto as crypto } from 'node:crypto';

import { Bench } from 'tinybench';

import { createCodec, FixedSizeCodec } from '../codec';
import { ReadonlyUint8Array } from '../readonly-uint8array';
import { reverseCodec } from '../reverse-codec';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import { createCodec, FixedSizeCodec, ReadonlyUint8Array, reverseCodec } from '../../';

const bench = new Bench({
throws: true,
Expand Down
5 changes: 3 additions & 2 deletions packages/codecs-strings/src/__benchmarks__/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import { webcrypto as crypto } from 'node:crypto';

import { Bench } from 'tinybench';

import { getBase16Codec } from '../base16';
import { getBase58Codec } from '../base58';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import { getBase16Codec, getBase58Codec } from '../../';

const bench = new Bench({
throws: true,
Expand Down
4 changes: 3 additions & 1 deletion packages/keys/src/__benchmarks__/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import { Bench } from 'tinybench';

import { generateKeyPair, SignatureBytes, signBytes, verifySignature } from '../index';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import { generateKeyPair, SignatureBytes, signBytes, verifySignature } from '../../';

Object.assign(globalThis, {
__BROWSER__: false,
Expand Down
4 changes: 3 additions & 1 deletion packages/rpc-transport-http/src/__benchmarks__/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import { Bench } from 'tinybench';
import { Agent, Dispatcher } from 'undici';
import { $ } from 'zx';

import { createHttpTransport } from '../index';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import { createHttpTransport } from '../../';

let VALIDATOR_URL = process.argv[2];
ok(
Expand Down
11 changes: 11 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@
"signature": true
},
"tasks": {
"benchmark": {
"dependsOn": [
"^compile:js"
],
"inputs": [
"$TURBO_DEFAULT$",
"tsconfig.*",
"src/**",
"../build-scripts/*.ts"
]
},
"build": {
"dependsOn": [
"compile:js",
Expand Down

0 comments on commit 2ccc1ea

Please sign in to comment.