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