mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 09:10:35 +08:00
15 lines
407 B
TypeScript
15 lines
407 B
TypeScript
import { fetchRemoteTextByLine } from './fetch-text-by-line';
|
|
import { sortDomains } from './stable-sort-domain';
|
|
|
|
import { bench, group, run } from 'mitata';
|
|
|
|
(async () => {
|
|
const data = await Array.fromAsync(await fetchRemoteTextByLine('https://osint.digitalside.it/Threat-Intel/lists/latestdomains.txt', true));
|
|
|
|
group(() => {
|
|
bench('sortDomains', () => sortDomains(data));
|
|
});
|
|
|
|
run();
|
|
})();
|