Skip to content

Instantly share code, notes, and snippets.

@skubakdj
skubakdj / threads.ts
Last active August 15, 2019 07:36
Stress test OpenMonero by starting a bunch of threads.
/*
steps to run (fill out the 'BASIC CONFIG' first):
mkdir stress_test && cd stress_test
npm init -y
npm install typescript ts-node axios git://github.com/mymonero/mymonero-core-js.git#1.0.0
[download gist as threads.ts]
node_modules/.bin/ts-node threads.ts
*/
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style type="text/css">
td.linenos { background-color: #f0f0f0; padding-right: 10px; }
span.lineno { background-color: #f0f0f0; padding: 0 5px 0 5px; }