Skip to content

Commit

Permalink
Add browser nanoid to benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Feb 1, 2024
1 parent 9591181 commit dfcfcc6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/benchmark.js
Expand Up @@ -13,6 +13,7 @@ import uidSafe from 'uid-safe'
import { uid as uidSecure } from 'uid/secure'
import { v4 as uuid4 } from 'uuid'

import { nanoid as browser } from '../index.browser.js'
import { customAlphabet, nanoid } from '../index.js'
import { nanoid as nonSecure } from '../non-secure/index.js'

Expand Down Expand Up @@ -48,6 +49,9 @@ suite
.add('customAlphabet', () => {
nanoid2()
})
.add('nanoid for browser', () => {
browser()
})
.add('secure-random-string', () => {
srs()
})
Expand Down

0 comments on commit dfcfcc6

Please sign in to comment.