mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 01:30:37 +08:00
13 lines
381 B
TypeScript
13 lines
381 B
TypeScript
import { fetchRemoteTextByLine } from './fetch-text-by-line';
|
|
import { processLine } from './process-line';
|
|
|
|
import { bench, run } from 'mitata';
|
|
|
|
(async () => {
|
|
const data = await Array.fromAsync(await fetchRemoteTextByLine('https://filters.adtidy.org/extension/ublock/filters/3_optimized.txt', false));
|
|
|
|
bench('processLine', () => data.forEach(processLine));
|
|
|
|
run();
|
|
})();
|