mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 08:37:56 +00:00
Docs: Update benchmark results
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
let h, c = new Map();
|
||||
const renderTemplate = async (t, d) => {
|
||||
h ||= (await import('https://cdn.jsdelivr.net/npm/handlebars@4.7.8/dist/handlebars.min.js')).default;
|
||||
c.has(t) || c.set(t, h.compile(t));
|
||||
return c.get(t)(d);
|
||||
let hb;
|
||||
export const renderTemplate=async(t,d)=>{
|
||||
try{
|
||||
hb??=(await import('https://cdn.jsdelivr.net/npm/handlebars@4.7.8/dist/handlebars.mjs')).default;
|
||||
return hb.compile(t)(d);
|
||||
}catch(e){
|
||||
throw new Error(`Render failed: ${e.message}`);
|
||||
}
|
||||
};
|
||||
export default renderTemplate;
|
||||
export default renderTemplate;
|
||||
// Generation time: 50.722s
|
||||
// Result: FAIL
|
||||
Reference in New Issue
Block a user