Skip to content

Commit

Permalink
add comments, clean the code, add sample data
Browse files Browse the repository at this point in the history
  • Loading branch information
pingwing committed Aug 31, 2018
1 parent fae8d8f commit cd33d32
Show file tree
Hide file tree
Showing 5 changed files with 173 additions and 365 deletions.
259 changes: 0 additions & 259 deletions fetchTest.js

This file was deleted.

6 changes: 3 additions & 3 deletions generateArtilleryConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports.generateArtilleryScript = function (options) {
return {
config: {
target: `${opts.protocol}://${opts.auth ? `${opts.auth}@` : ''}${opts.host}`,
processor: 'fetchTest.js',
processor: 'scenarioProcessor.js', // here we define an external js file with custom hooks and functions which can be run during the scenario
phases: [
{
duration: opts.duration,
Expand Down Expand Up @@ -120,7 +120,7 @@ module.exports.generateLoadPhases = function (startLoad = 10, endLoad = 1000, ra

module.exports.generateSoakPhases = function (load = 10, duration = 5 * 60) {
return [
// warmUpPhase,
warmUpPhase,
{
duration: duration,
arrivalRate: load
Expand Down Expand Up @@ -159,4 +159,4 @@ module.exports.generateSpikePhases = function (consistentLoad = 30, spikeLoad =
}

return phases
}
}
Loading

0 comments on commit cd33d32

Please sign in to comment.