mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 08:37:56 +00:00
Docs: Update benchmark for openai/gpt-5.2 EFF:xhigh
This commit is contained in:
21
tests/5_markdown_parser/outputs/openai_gpt-5.2 EFF_xhigh.js
Normal file
21
tests/5_markdown_parser/outputs/openai_gpt-5.2 EFF_xhigh.js
Normal file
@@ -0,0 +1,21 @@
|
||||
let p, md, purify;
|
||||
|
||||
const load = () =>
|
||||
p ??= Promise.all([
|
||||
import("https://cdn.jsdelivr.net/npm/markdown-it@14/dist/markdown-it.esm.js"),
|
||||
import("https://cdn.jsdelivr.net/npm/dompurify@3/dist/purify.es.mjs")
|
||||
]).then(([{ default: MarkdownIt }, { default: DOMPurify }]) => {
|
||||
md ||= new MarkdownIt({ html: true, linkify: true });
|
||||
purify ||= DOMPurify;
|
||||
}).catch(e => {
|
||||
p = 0;
|
||||
throw e;
|
||||
});
|
||||
|
||||
async function parseMarkdown(src) {
|
||||
await load();
|
||||
return purify.sanitize(md.render(`${src ?? ""}`), { USE_PROFILES: { html: true } });
|
||||
}
|
||||
export default parseMarkdown;
|
||||
// Generation time: 136.807s
|
||||
// Result: FAIL
|
||||
Reference in New Issue
Block a user