From 5d5e249f70af0090984843b1667568a204f56df5 Mon Sep 17 00:00:00 2001 From: Aaron Date: Fri, 16 Aug 2024 19:40:41 +0800 Subject: [PATCH] chore: update readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 787b03f..0c656f4 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ export const TestName = async ({ perf, container }) => { perf.evaluate('rendering', 'start', 'end'); // Test the rendering duration by giving a callback function - perf.evaluate('rendering', () => { + await perf.evaluate('rendering', () => { for (let i = 0; i < 1000; i++) { ctx.fillRect(0, 0, 100, 100); } @@ -72,4 +72,4 @@ export default defineConfig({ ## License -© 2024 Aarebecca. ISC License. \ No newline at end of file +© 2024 Aarebecca. ISC License.