# Cbench **Repository Path**: mirrors/Cbench ## Basic Information - **Project Name**: Cbench - **Description**: Cbench(controller benchmarker)是一种用于测试OpenFlow控制器性能的工具,通过不断循环产生新的流(packet-in消息)来测试控制器的处理能力 - **Primary Language**: Ruby - **License**: GPL-3.0 - **Default Branch**: develop - **Homepage**: https://www.oschina.net/p/cbench - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-29 - **Last Updated**: 2025-10-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README cbench ====== [![Build Status](http://img.shields.io/travis/trema/cbench/develop.svg?style=flat)][travis] [![Code Climate](http://img.shields.io/codeclimate/github/trema/cbench.svg?style=flat)][codeclimate] [![Coverage Status](http://img.shields.io/coveralls/trema/cbench/develop.svg?style=flat)][coveralls] [![Dependency Status](http://img.shields.io/gemnasium/trema/cbench.svg?style=flat)][gemnasium] An dedicated OpenFlow controller implementation for "cbench" OpenFlow controller benchmark. [travis]: http://travis-ci.org/trema/cbench [codeclimate]: https://codeclimate.com/github/trema/cbench [coveralls]: https://coveralls.io/r/trema/cbench [gemnasium]: https://gemnasium.com/trema/cbench Prerequisites ------------- * Ruby 2.2.5 or higher ([RVM][rvm]). * [Open vSwitch][openvswitch] (`apt-get install openvswitch-switch`). [rvm]: https://rvm.io/ [openvswitch]: https://openvswitch.org/ Install ------- ``` $ git clone https://github.com/trema/cbench.git $ cd cbench $ bundle install --binstubs ``` Play ---- Run this controller ``` $ ./bin/trema run ./lib/cbench.rb ``` then, on another terminal ``` $ ./bin/cbench --port 6653 --switches 1 --loops 10 --ms-per-test 10000 --delay 1000 --throughput ``` Enjoy!