https://github.com/tboox/benchbox
🧀 The Benchmark Testing Box
https://github.com/tboox/benchbox
benchmark coroutine tbox xmake
Last synced: 11 months ago
JSON representation
🧀 The Benchmark Testing Box
- Host: GitHub
- URL: https://github.com/tboox/benchbox
- Owner: tboox
- License: apache-2.0
- Created: 2016-08-31T06:46:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-09-27T09:43:25.000Z (over 4 years ago)
- Last Synced: 2025-03-20T15:12:04.892Z (12 months ago)
- Topics: benchmark, coroutine, tbox, xmake
- Language: C
- Homepage: https://tboox.org
- Size: 21.3 MB
- Stars: 34
- Watchers: 3
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-xmake - benchbox
README
# The Benchmark Testing Box
[](https://gitter.im/waruqi/tboox?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](http://tboox.org/donation/)
## Introduction
Benchbox is a benchmark testing utilities.
## Build
Please install xmake first: [xmake](http://xmake.io)
```bash
$ xmake
```
## Run case
```bash
$ xmake coroutine -n switch
or $ xmake coroutine --casename switch
$ xmake coroutine -n channel
or $ xmake coroutine --casename channel
```
## Reports
If you want to look the testing results, please refer to [reports](https://github.com/waruqi/benchbox/wiki/reports).
## List tests
```bash
$ xmake --help
```
The results:
```
...
Tasks:
coroutine The coroutine benchmark.
other The other benchmark.
```
## List cases
```bash
$ xmake coroutine --help
```
The results:
```
The coroutine benchmark.
Options:
...
-n CASENAME, --casename=CASENAME The case name.
- switch
- channel
```
#### Contacts
* Email:[waruqi@gmail.com](mailto:waruqi@gmail.com)
* Homepage:[TBOOX Open Source Project](http://www.tboox.org/cn)
* Community:[TBOOX Open Source Community](http://www.tboox.org/forum)
## 简介
Benchbox是一个基准测试包,里面包含许多针对第三方库功能的性能基准测试和对比。
例如:各大开源协程库性能基准测试,等等
## 编译
请先安装: [xmake](http://xmake.io)
然后运行:
```bash
$ xmake
```
## 运行测试case
```bash
$ xmake coroutine -n switch
or $ xmake coroutine --casename switch
$ xmake coroutine -n channel
or $ xmake coroutine --casename channel
```
## 测试报告
如果想要查看已有的测试结果,请参考:[测试报告](https://github.com/waruqi/benchbox/wiki/reports).
## 显示所有测试用例
```bash
$ xmake --help
```
结果如下:
```
...
Tasks:
coroutine The coroutine benchmark.
other The other benchmark.
```
## 显示某个测试的所有case
```bash
$ xmake coroutine --help
```
结果如下:
```
The coroutine benchmark.
Options:
...
-n CASENAME, --casename=CASENAME The case name.
- switch
- channel
```
#### 联系方式
* 邮箱:[waruqi@gmail.com](mailto:waruqi@gmail.com)
* 主页:[TBOOX开源工程](http://www.tboox.org/cn)
* 社区:[TBOOX开源社区](http://www.tboox.org/forum)
* QQ群:343118190
* 微信公众号:tboox-os