From f898d19a270344ffddff1a748bd17f14cad8522c Mon Sep 17 00:00:00 2001 From: Kingtous Date: Mon, 20 Feb 2023 16:46:45 +0800 Subject: [PATCH] add: bench --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7cf07fd..736271e 100644 --- a/README.md +++ b/README.md @@ -55,8 +55,20 @@ Check the example for details. ## API -To improving better convienent interface for both dart and native developers, the plugin provides two kinds of APi to render the frame. +For a better convienent interface for both dart and native developers, the plugin provides two kinds of APi to render the frame. +Benchmark: + +macOS Bigsur qemu vm (4+8G), with OpenGL accelerated. Release build. + +| API Kind | FPS(Average) | +|----|-----| +| Method Channel (Dart) API | ~45 | +| Native API | ~**670** | + +Conclusion: + +For a better performance, please use `Native` API provided by this plugin. ### Dart API