Skip to content

Commit

Permalink
test: Adjust the perf test (#4538)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S authored Jun 8, 2023
1 parent f184c75 commit b8aa4e9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/cspell-trie-lib/src/perf/perfFastTrieBlob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,14 @@ export async function measurePerf(which: string | undefined, method: string | un
suggestTrieNode(trie.root, 'nearest', { ignoreCase: false, changeLimit: maxEdits })
);

timer.measureFn('sug TrieNode', () => sugAStar2(trieTrie, ['nearest', 'w6gDFScm3qpITum86UhXp4UQ']));
timer.measureFn('sug FastTrie', () => sugAStar2(trieFast, ['nearest', 'w6gDFScm3qpITum86UhXp4UQ']));
timer.measureFn('sug TrieBlob', () => sugAStar2(trieBlob, ['nearest', 'w6gDFScm3qpITum86UhXp4UQ']));
const sugWords = ['afgelopen', 'nearest', 'w6gDFScm3qpITum86UhXp4UQ'];
timer.measureFn('sug TrieNode', () => sugAStar2(trieTrie, sugWords));
timer.measureFn('sug FastTrie', () => sugAStar2(trieFast, sugWords));
timer.measureFn('sug TrieBlob', () => sugAStar2(trieBlob, sugWords));

// cspell:ignore afgelopen
timer.measureFn('sug FastTrie NL', () => sugAStar2(trieBlobNL, ['afgelopen', 'w6gDFScm3qpITum86UhXp4UQ']));
timer.measureFn('sug TrieBlob NL', () => sugAStar2(trieBlobNL, ['afgelopen', 'w6gDFScm3qpITum86UhXp4UQ']));
timer.measureFn('sug FastTrie NL', () => sugAStar2(trieFastNL, sugWords));
timer.measureFn('sug TrieBlob NL', () => sugAStar2(trieBlobNL, sugWords));

return;

Expand Down

0 comments on commit b8aa4e9

Please sign in to comment.