Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.52 KB

File metadata and controls

42 lines (31 loc) · 1.52 KB

bsbench

A benchmarking suite for Roku's BrightScript runtime (written in brighterscript)

Steps to install:

git clone https://github.com/rokucommunity/bsbench
cd bsbench
npm install

Running

Through VSCode (recommended)

Open vscode, and start a new debug session to watch it run. Image

Image

Through the CLI

You can run the benchmark library from the cli as well. From within the project directory, run the following command (yes, the extra -- is intentional):

npm run benchmark -- --host ROKU_IP_ADDRESS --password ROKU_DEV_PASSWORD

Image

Running specific suites with --only

Use --only to run a subset of suites by name. Each pattern is a case-insensitive regex matched against the suite name. Multiple patterns are OR'd together.

# Run a single suite
npm run benchmark -- --host ROKU_IP_ADDRESS --password ROKU_DEV_PASSWORD --only roRegex

# Run multiple suites
npm run benchmark -- --host ROKU_IP_ADDRESS --password ROKU_DEV_PASSWORD --only roRegex StringConcat

# Match suites starting with "Array"
npm run benchmark -- --host ROKU_IP_ADDRESS --password ROKU_DEV_PASSWORD --only "^Array"

# Match all Field* suites OR all String* suites
npm run benchmark -- --host ROKU_IP_ADDRESS --password ROKU_DEV_PASSWORD --only "^Field" "^String"