mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-03 12:31:54 +08:00
Refactor: improve stable sort domains
This commit is contained in:
@@ -7,10 +7,9 @@ import { bench, group, run } from 'mitata';
|
||||
|
||||
(async () => {
|
||||
const data = await processLineFromReadline(await fetchRemoteTextByLine('https://osint.digitalside.it/Threat-Intel/lists/latestdomains.txt'));
|
||||
const gorhill = await getGorhillPublicSuffixPromise();
|
||||
|
||||
group('sortDomains', () => {
|
||||
bench('run', () => sortDomains(data, gorhill));
|
||||
bench('run', () => sortDomains(data));
|
||||
});
|
||||
|
||||
run();
|
||||
|
||||
Reference in New Issue
Block a user