Skip to content

A utility to test the execution time of the submission against the solution in a workshopper

License

Notifications You must be signed in to change notification settings

TimothyGu/workshopper-timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

workshopper-timer

Makes sure the submission of a workshop executes for around the same duration as the solution.

Dependency Status NPM version

Installation

npm install --save workshopper-timer

Usage

var exercise = require('workshopper-exercise')();
var filecheck = require('workshopper-exercise/filecheck');
var execute = require('workshopper-exercise/execute');
var comparestdout = require('workshopper-exercise/comparestdout');

var timer = require('workshopper-timer');

exercise = filecheck(exercise);
exercise = execute(exercise);
exercise = comparestdout(exercise);

// 100 = threshold in ms
exercise = timer(exercise, 100);

module.exports = exercise;

License

MIT

About

A utility to test the execution time of the submission against the solution in a workshopper

Resources

License

Stars

Watchers

Forks

Packages

No packages published