Skip to content

Instantly share code, notes, and snippets.

Avatar

Natalie Weizenbaum nex3

View GitHub Profile
@munificent
munificent / stress.dart
Created Mar 19, 2013
This is my little script for stress-testing a Dart program. Change `script_to_run.dart` to the name of the Dart script to run. Make sure that script ends with a non-zero exit code to indicate failure.
View stress.dart
import 'dart:io';
const MAX_ATTEMPTS = 10000;
const MAX_JOBS = 20;
var total = 0;
var numRunning = 0;
main() {
for (var i = 0; i < MAX_JOBS; i++) spawnProc();
View layout.html
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" />
<!--[if lt IE 9]>
<link href="/stylesheets/pie.css" media="screen, projection" rel="stylesheet" type="text/css" />
<![endif]-->