Skip to content

Commit

Permalink
Update benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
narze committed Oct 11, 2021
1 parent 2729873 commit 8cda6aa
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions benchmark/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ const { bahttext } = require('bahttext');
const THBText = require('thai-baht-text');
const { ThaiBaht } = require('thai-baht-text-ts');
const BAHTTEXTjs = require('./BAHTTEXT');
const { convert } = require('../dist/baht.cjs.production.min');
// const { convert: bahtLatest } = require('baht');
const thaiBahtLib = require('@to-da-moon/thai-baht-lib');
const { convert: baht } = require('../dist/baht.cjs.production.min');
const { convert: bahtLatest } = require('baht');

const times = 100000;
const numbers = [
Expand Down Expand Up @@ -59,8 +60,9 @@ const numbers = [
];

const libraries = {
baht: n => convert(n),
// bahtLatest: n => bahtLatest(n),
baht: n => baht(n),
bahtLatest: n => bahtLatest(n),
thaiBahtLib: n => thaiBahtLib.bahtText(n),
bahttext: n => bahttext(n),
'BAHTTEXT.js': n => BAHTTEXTjs(n),
'thai-baht-text': n => THBText(n),
Expand Down

0 comments on commit 8cda6aa

Please sign in to comment.