Skip to content

Instantly share code, notes, and snippets.

Avatar

Kyle Hailey khailey

View GitHub Profile
View foo.jmx
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="2.9" jmeter="3.0 r1743807">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
View pgload.jmx
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="2.9" jmeter="3.0 r1743807">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@khailey
khailey / tcpmac.d
Last active Jan 1, 2016
get tcp traffic send and receive on a Mac. Was using this to see what programs were saturating my DSL connection
View tcpmac.d
#!/usr/sbin/dtrace -s
#pragma D option defaultargs
#pragma D option quiet
inline int af_inet = 2; /* AF_INET defined in bsd/sys/socket.h */
inline int af_inet6 = 30; /* AF_INET6 defined in bsd/sys/socket.h */
/* would be cool if this worked on the MAC
dtrace -n 'mib:::tcpInDataInorderBytes { @[execname] = sum(args[0]); }'
but mib doesn't seem to be on my Mac 10.8.2
*/
View index.html
title
------------------
list
* a
* b
* c
list 2
@khailey
khailey / fio_visualize.r
Created Jul 19, 2012
visualizing data from fio in R
View fio_visualize.r
colors <- c(
"#00007F", # 50u 1 blue
"#0000BB", # 100u 5
"#0000F7", # 250u
"#00ACFF", # 500u 6
"#00E8FF", # 1ms 7
"#25FFD9", # 2ms 8
"#61FF9D", # 4ms 9
"#9DFF61", # 10ms 10