This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Artillery performance test | |
on: | |
workflow_dispatch: | |
inputs: | |
startup_duration: | |
description: 'Start up duration' | |
required: true | |
default: 20 | |
type: 'number' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable @typescript-eslint/no-var-requires */ | |
/* eslint-disable no-param-reassign */ | |
const { ObjectId } = require('mongodb'); | |
function setConfigCreateBody(requestParams, context, ee, next) { | |
const contentId = new ObjectId(); | |
requestParams.body = JSON.stringify({ | |
query: `mutation UpsertConfigs($data: ConfigsInput!) { | |
upsertConfigs(data: $data) { | |
code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config: | |
target: '{{ $processEnvironment.SERVICE_URL }}' | |
phases: | |
- duration: '{{ $processEnvironment.TEST_STARTUP_DURATION }}' #20 | |
arrivalRate: '{{ $processEnvironment.TEST_STARTUP_ARRIVAL_RATE}}' #5 | |
name: Startup phase | |
maxVusers: '{{ $processEnvironment.TEST_STARTUP_MAX_USERS }}' #30 | |
- duration: '{{ $processEnvironment.TEST_PEAK_DURATION }}' #5 | |
arrivalRate: '{{ $processEnvironment.TEST_PEAK_ARRIVAL_RATE }}' #20 | |
name: Peak phase |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<sys/types.h> | |
#include<unistd.h> | |
#include<stdlib.h> | |
main() | |
{ | |
int pid; | |
pid=fork(); |