Skip to content

gasp/bw_benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bandwidth Benchmark

Server Info

dependencies

Composer

  • one-liner: curl -sS https://getcomposer.org/installer | php
  • doc: getcomposer.org

node & npm

  • one-liner: brew install node
  • doc: lmgtfy

gulp

  • one-liner: npm install -g gulp
  • doc: gulpjs

Steps for Install

  1. Set your host document root to server/public/
  2. run ./composer.phar install
  3. Create a config.php file based off of config.dist.php and save to config.php
  4. The database should follow the following schema:
CREATE TABLE `bandwidth_records` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `js` decimal(20,10) unsigned NULL,
  `swf` decimal(20,10) unsigned NULL,
  `user_agent` varchar(255) DEFAULT NULL,
  `ip` char(45) DEFAULT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
ALTER TABLE `bandwidth_records` ADD `referrer` CHAR(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL AFTER `ip`;
  1. run npm install to install local nodejs packages
  2. run gulp install to perform an installation

Make sure to then modify the endpoint in benchmark.js to point to the host running the bandwidth logging api, with the path /api/bandwidth. For example: lab.videodesk.com/bw_benchmark/api/bandwidth.

About

bandwith benchmark tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published