Skip to content

Commit 8cda6aa

Browse files
committed
Update benchmark
1 parent 2729873 commit 8cda6aa

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

benchmark/index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ const { bahttext } = require('bahttext');
22
const THBText = require('thai-baht-text');
33
const { ThaiBaht } = require('thai-baht-text-ts');
44
const BAHTTEXTjs = require('./BAHTTEXT');
5-
const { convert } = require('../dist/baht.cjs.production.min');
6-
// const { convert: bahtLatest } = require('baht');
5+
const thaiBahtLib = require('@to-da-moon/thai-baht-lib');
6+
const { convert: baht } = require('../dist/baht.cjs.production.min');
7+
const { convert: bahtLatest } = require('baht');
78

89
const times = 100000;
910
const numbers = [
@@ -59,8 +60,9 @@ const numbers = [
5960
];
6061

6162
const libraries = {
62-
baht: n => convert(n),
63-
// bahtLatest: n => bahtLatest(n),
63+
baht: n => baht(n),
64+
bahtLatest: n => bahtLatest(n),
65+
thaiBahtLib: n => thaiBahtLib.bahtText(n),
6466
bahttext: n => bahttext(n),
6567
'BAHTTEXT.js': n => BAHTTEXTjs(n),
6668
'thai-baht-text': n => THBText(n),

0 commit comments

Comments
 (0)