Skip to content

Instantly share code, notes, and snippets.

@plaa
plaa / testmicro.c
Created April 11, 2013 18:52
Short program for generating load to test AWS micro instances
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/time.h>
#include <math.h>
long int getMicroseconds();
int main(int argc, char **argv) {
int percentage;
Feature: User API
Scenario: Index action includes full user JSON
Given the following user exists:
| id | first_name | last_name |
| 1 | Steve | Richert |
And I visit "/users/1.json"
And I keep the JSON response as "USER_1"
When I visit "/users.json"
Then the JSON response should be:
"""