diff --git a/package.json b/package.json index 5d886bb..013b6f2 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,7 @@ "scripts": { "lint": "biome check --write ./", "check": "tsc --noEmit", - "test": "vitest run", - "bench": "vitest bench --run" + "test": "vitest run" }, "devDependencies": { "@biomejs/biome": "^1.9.3", diff --git a/src/page-1/1. Two Sum/twoSum.bench.ts b/src/page-1/1. Two Sum/twoSum.bench.ts deleted file mode 100644 index 23e7a09..0000000 --- a/src/page-1/1. Two Sum/twoSum.bench.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { bench } from 'vitest'; - -import { twoSum, twoSum2 } from './twoSum'; - -describe('1. Two Sum', () => { - // fastest - bench('twoSum', () => { - twoSum([2, 7, 11, 15], 9); - twoSum([3, 2, 4], 6); - twoSum([3, 3], 6); - }); - - bench('twoSum2', () => { - twoSum2([2, 7, 11, 15], 9); - twoSum2([3, 2, 4], 6); - twoSum2([3, 3], 6); - }); -}); diff --git a/src/page-1/9. Palindrome Number/isPalindrome.bench.ts b/src/page-1/9. Palindrome Number/isPalindrome.bench.ts deleted file mode 100644 index 091e36d..0000000 --- a/src/page-1/9. Palindrome Number/isPalindrome.bench.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { bench } from 'vitest'; - -import { isPalindrome, isPalindrome2 } from './isPalindrome'; - -describe('9. Palindrome Number', () => { - // fastest - bench('isPalindrome', () => { - isPalindrome(121); - isPalindrome(-121); - isPalindrome(10); - }); - - bench('isPalindrome2', () => { - isPalindrome2(121); - isPalindrome2(-121); - isPalindrome2(10); - }); -}); diff --git a/src/page-15/1556. Thousand Separator/thousandSeparator.bench.ts b/src/page-15/1556. Thousand Separator/thousandSeparator.bench.ts deleted file mode 100644 index f5869d9..0000000 --- a/src/page-15/1556. Thousand Separator/thousandSeparator.bench.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { bench } from 'vitest'; - -import { - thousandSeparator, - thousandSeparator2, - thousandSeparator3, - thousandSeparator4, -} from './thousandSeparator'; - -describe('1556. Thousand Separator', () => { - bench('thousandSeparator', () => { - thousandSeparator(987); - thousandSeparator(1234); - }); - - // slowest - bench('thousandSeparator2', () => { - thousandSeparator2(987); - thousandSeparator2(1234); - }); - - // fastest - bench('thousandSeparator3', () => { - thousandSeparator3(987); - thousandSeparator3(1234); - }); - - bench('thousandSeparator4', () => { - thousandSeparator4(987); - thousandSeparator4(1234); - }); -}); diff --git a/src/page-15/1598. Crawler Log Folder/minOperations.bench.ts b/src/page-15/1598. Crawler Log Folder/minOperations.bench.ts deleted file mode 100644 index eb93ca8..0000000 --- a/src/page-15/1598. Crawler Log Folder/minOperations.bench.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { bench } from 'vitest'; - -import { minOperations, minOperations2 } from './minOperations'; - -describe('1598. Crawler Log Folder', () => { - bench('minOperations', () => { - minOperations(['d1/', 'd2/', '../', 'd21/', './']); - minOperations(['d1/', 'd2/', './', 'd3/', '../', 'd31/']); - minOperations(['d1/', '../', '../', '../']); - }); - - // fastest - bench('minOperations2', () => { - minOperations2(['d1/', 'd2/', '../', 'd21/', './']); - minOperations2(['d1/', 'd2/', './', 'd3/', '../', 'd31/']); - minOperations2(['d1/', '../', '../', '../']); - }); -}); diff --git a/src/page-4/345. Reverse Vowels of a String/reverseVowels.bench.ts b/src/page-4/345. Reverse Vowels of a String/reverseVowels.bench.ts deleted file mode 100644 index ebb9206..0000000 --- a/src/page-4/345. Reverse Vowels of a String/reverseVowels.bench.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { bench } from 'vitest'; - -import { reverseVowels, reverseVowels2 } from './reverseVowels'; - -describe('345. Reverse Vowels of a String', () => { - // fastest - bench('reverseVowels', () => { - reverseVowels('hello'); - reverseVowels('leetcode'); - }); - - bench('reverseVowels2', () => { - reverseVowels2('hello'); - reverseVowels2('leetcode'); - }); -}); diff --git a/tsconfig.json b/tsconfig.json index ee67a39..8445b10 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -28,5 +28,5 @@ "skipLibCheck": true }, - "exclude": ["node_modules", "coverage"] + "exclude": ["node_modules", "coverage", "algorithms"] }