Skip to content

Commit dfcfcc6

Browse files
committed
Add browser nanoid to benchmark
1 parent 9591181 commit dfcfcc6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/benchmark.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import uidSafe from 'uid-safe'
1313
import { uid as uidSecure } from 'uid/secure'
1414
import { v4 as uuid4 } from 'uuid'
1515

16+
import { nanoid as browser } from '../index.browser.js'
1617
import { customAlphabet, nanoid } from '../index.js'
1718
import { nanoid as nonSecure } from '../non-secure/index.js'
1819

@@ -48,6 +49,9 @@ suite
4849
.add('customAlphabet', () => {
4950
nanoid2()
5051
})
52+
.add('nanoid for browser', () => {
53+
browser()
54+
})
5155
.add('secure-random-string', () => {
5256
srs()
5357
})

0 commit comments

Comments
 (0)