Ahoo-Wang / CosId

Universal, flexible, high-performance distributed ID generator. | 通用、灵活、高性能的分布式 ID 生成器
https://cosid.ahoo.me
Apache License 2.0
482 stars 76 forks source link

Performance: CosId vs Leaf #22

Open Ahoo-Wang opened 2 years ago

Ahoo-Wang commented 2 years ago

CosId-VS-Leaf

https://cosid.ahoo.me/guide/Performance-CosId-Leaf.html

Describe the solution you'd like

Add benchmark comparison between cosid and leaf. and add to workflows.

https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources


Due to the resource constraints of GitHub runner, the benchmark running in GitHub runner is very different from the benchmark in the real environment (nearly twice), However, it is still valuable to compare the benchmark before and after commit and the third-party library when running in the same environment and configuring resources (both running in GitHub runner).


因受到 GitHub Runner 资源限制,运行在 GitHub Runner 中的基准测试与真实环境基准测试对比有非常大的差距(近2倍), 但是对于运行在同一环境配置资源情况下(都运行在 GitHub Runner),进行 commit 前后的基准对比、以及第三方库的对比依然是有价值的。

Ahoo-Wang commented 2 years ago

因受到 GitHub Runner 资源限制,运行在 GitHub Runner 中的基准测试与真实环境基准测试对比有非常大的差距(近2倍), 但是对于运行在同一环境配置资源情况下(都运行在 GitHub Runner),进行 commit 前后的基准对比、以及第三方库的对比依然是有价值的。

https://github.com/Ahoo-Wang/CosId/actions/workflows/benchmark-vs-test.yml

https://github.com/Ahoo-Wang/CosId/runs/4824055595?check_suite_focus=true

image