Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Provides a benchmarking environment for testing SynTest-JavaScript

License

NotificationsYou must be signed in to change notification settings

syntest-framework/syntest-javascript-benchmark

Repository files navigation

This repository contains a benchmark that can be used to evaluate SynTest Framework - JavaScript.

Running Instructions

  1. Clone thebenchmark project:
git clone git@github.com:syntest-framework/syntest-javascript-benchmark.git
  1. Move into thebenchmark project and install the dependencies
cd syntest-javascript-benchmarknpm install

Note: this will also initiate the git submodules and install dependencies of the benchmark projects

  1. Run the tool
npx syntest javascripttest

Local (Development) Running Instructions

  1. Create a local working directory:
mkdir syntestcd syntest
  1. Clone all projects (i.e.,core,javascript, andbenchmark) in the same directory:
git clone git@github.com:syntest-framework/syntest-framework.gitgit clone git@github.com:syntest-framework/syntest-javascript.gitgit clone git@github.com:syntest-framework/syntest-javascript-benchmark.git
  1. Move into thecore project, install all the dependencies, and build the project to compile all the TypeScript code:
cd syntest-frameworknpm installnpm run build
  1. Move into thejavascript project, install all the dependencies, link the dependencies contained within thecore to the local version, and build the project to compile all the TypeScript code.
cd syntest-javascriptnpm install./link.shnpm run build
  1. Move into thebenchmark project and call the local:install script:
cd syntest-javascript-benchmarknpm run local:install

This will link the core and javascript project to the current node_modules folder.

Note: this will also initiate the git submodules and install dependencies of the benchmark projects.

  1. Run the tool
npx syntest javascripttest

Configuration

Benchmark Project Selection

The file.syntest-projects.json contains the different configurations needed to run the various benchmarks contained in this project:

  • CommanderJS
  • Express
  • JavaScript Algorithms
  • Lodash
  • Moment

These configurations can be manually provided on the CLI or pasted into the.syntest.json config. As basic configuration is provided by default in the.syntest.json config.

Search Algorithm Selection

There are various presets:

  • DynaMOSA
  • MOSA
  • NSGAII

That configure all the parameters for that algorithm.

Additionally, users can configure all parameters themselves by providing the individual configuration paramaters:

  • search-algorithm
  • population-size
  • objective-manager
  • secondary-objective
  • crossover
  • procreation
  • sampler

Search Budget Selection

By default the search algorithm will run until all objectives are covered. It is recommanded to provide an additional search budget that constraints the time the search algorithm has. The framework provides the following budgets:

  • total-time
  • search-time
  • iterations
  • evaluations

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp