Giter Site home page Giter Site logo

bw_benchmark's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.