https://github.com/sunsunmonkey/charts-performance
performance for antvis
https://github.com/sunsunmonkey/charts-performance
antv chart performance
Last synced: 6 months ago
JSON representation
performance for antvis
- Host: GitHub
- URL: https://github.com/sunsunmonkey/charts-performance
- Owner: sunsunmonkey
- License: mit
- Created: 2024-02-07T08:08:06.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-07T01:32:15.000Z (almost 2 years ago)
- Last Synced: 2024-03-07T02:37:12.356Z (almost 2 years ago)
- Topics: antv, chart, performance
- Language: TypeScript
- Homepage: https://charts-performance.vercel.app
- Size: 216 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# charts-performance
## 图表性能测速
项目启动
```shell
pnpm i
pnpm dev
```
## 添加用例方式
添加图表选项
在**src\layout\content\meta.json**里直接添加即可
添加测试代码
基于vite的**import.mete.glob**自动解析读入
但注意要加在第二层,例子**src\pref\cases\g2\echarts\area.ts**
## chartWrapper
由于不同引擎可能有不同特殊处理,所以进行了一些解耦操作,
在**src\pref\cases\chartWrapper.ts**可以添加一些wrapper,有点类似于中间件,目前只有timerWrapper,可以自行添加
然后再在**src\pref\cases\index.ts**的getPerfCase中包裹就好
## 懒加载
由于可能未来测试用例的增加,导致包体积太大,所以采用了一定的懒加载
## TODO
各种用例的添加,以及数据的调优