Skip to content

Commit

Permalink
chore: add benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jul 4, 2024
1 parent c98696e commit 835d9a0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 15 deletions.
5 changes: 2 additions & 3 deletions benchmarks/typed/isMap.bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import * as _ from 'radashi'
import { bench } from 'vitest'

describe('isMap', () => {
bench('with no arguments', () => {
_.isMap()
bench('with valid input', () => {
_.isMap(new Map())
})
})

5 changes: 2 additions & 3 deletions benchmarks/typed/isRegExp.bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import * as _ from 'radashi'
import { bench } from 'vitest'

describe('isRegExp', () => {
bench('with no arguments', () => {
_.isRegExp()
bench('with valid input', () => {
_.isRegExp(/.+/)
})
})

5 changes: 2 additions & 3 deletions benchmarks/typed/isSet.bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import * as _ from 'radashi'
import { bench } from 'vitest'

describe('isSet', () => {
bench('with no arguments', () => {
_.isSet()
bench('with valid input', () => {
_.isSet(new Set())
})
})

5 changes: 2 additions & 3 deletions benchmarks/typed/isWeakMap.bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import * as _ from 'radashi'
import { bench } from 'vitest'

describe('isWeakMap', () => {
bench('with no arguments', () => {
_.isWeakMap()
bench('with valid input', () => {
_.isWeakMap(new WeakMap())
})
})

5 changes: 2 additions & 3 deletions benchmarks/typed/isWeakSet.bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import * as _ from 'radashi'
import { bench } from 'vitest'

describe('isWeakSet', () => {
bench('with no arguments', () => {
_.isWeakSet()
bench('with valid input', () => {
_.isWeakSet(new WeakSet())
})
})

0 comments on commit 835d9a0

Please sign in to comment.