Skip to content

Instantly share code, notes, and snippets.

View iamsuneeth's full-sized avatar

Suneeth Lenin iamsuneeth

  • Condé Nast
  • bengaluru, Karnataka, India
View GitHub Profile
#include<stdio.h>
#include<sys/types.h>
#include<unistd.h>
#include<stdlib.h>
main()
{
int pid;
pid=fork();
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
/* 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
name: Artillery performance test
on:
workflow_dispatch:
inputs:
startup_duration:
description: 'Start up duration'
required: true
default: 20
type: 'number'