@@ -48,10 +48,9 @@ The chart below loads the latest benchmark data from CI. Each data point is a pu
4848 <div id = " benchmark-table" style = " display:none; overflow-x: auto;" ></div >
4949</div >
5050
51- <script src = " https://cdn.jsdelivr.net/npm/chart.js@4/dist/chart.umd.min.js" defer ></script >
51+ <script is : inline src = " https://cdn.jsdelivr.net/npm/chart.js@4/dist/chart.umd.min.js" ></script >
5252
53- <script defer >
54- { `
53+ <script is :inline >
5554(async function() {
5655 const loading = document .getElementById (' benchmark-loading' );
5756 const canvas = document .getElementById (' benchmark-chart' );
@@ -89,7 +88,7 @@ The chart below loads the latest benchmark data from CI. Each data point is a pu
8988
9089 let html = ' <table><thead><tr><th>Benchmark</th><th>Value</th><th>Unit</th><th>±Error</th></tr></thead><tbody>' ;
9190 for (const b of benches ) {
92- const name = b.name.replace(/^org\\ .atmosphere\\ .benchmarks\\ .jmh\ \ ./, '');
91+ const name = b .name .replace (/ ^ org\. atmosphere\. benchmarks\. jmh\. / , ' ' );
9392 html += ' <tr><td><code>' + name + ' </code></td><td><strong>' + b .value .toFixed (2 ) + ' </strong></td><td>' + b .unit + ' </td><td>±' + (b .range || ' ?' ) + ' </td></tr>' ;
9493 }
9594 html += ' </tbody></table>' ;
@@ -107,7 +106,7 @@ The chart below loads the latest benchmark data from CI. Each data point is a pu
107106
108107 const colors = [' #2563eb' ,' #dc2626' ,' #16a34a' ,' #ca8a04' ,' #9333ea' ,' #0891b2' ,' #e11d48' ,' #4f46e5' ];
109108 const datasets = benchNames.map((name, i) => ({
110- label: name.replace(/^org\\ .atmosphere\\ .benchmarks\\ .jmh\ \ ./, ''),
109+ label: name .replace (/ ^ org\. atmosphere\. benchmarks\. jmh\. / , ' ' ),
111110 data: recentEntries .map (e => {
112111 const b = (e .benches || []).find (x => x .name === name );
113112 return b ? b .value : null ;
@@ -135,7 +134,6 @@ The chart below loads the latest benchmark data from CI. Each data point is a pu
135134 loading .textContent = ' Could not load benchmark data: ' + err .message ;
136135 }
137136})();
138- ` }
139137</script >
140138
141139## Running Locally
0 commit comments