Skip to main content
Module

x/deno_dom/bench/bench-dom.sh

Browser DOM & HTML parser in Deno
Extremely Popular
Go to Latest
File
#!/bin/bash
cat <<MSGBenchmark: Parse c.html, produce a DOM, then runquerySelectorAll('div[aria-controls^="ot-desc"]')
MSG
echo -n "Deno DOM WASM - "deno run --allow-read ./bench-wasm-dom.ts 2>&1 | grep time:
echo -n "Deno DOM Native - "deno run -A --unstable ./bench-native-dom.ts 2>&1 | grep time:
echo -n "Node.js JSDOM - "node ./bench-jsdom.js