ASF Bugzilla – Attachment 35972 Details for
Bug 62426
Here are some Reduced ReportGenerator performance Code
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Script to generate a jtl file that could be used for performance testing
generate_tests.py (text/x-python), 999 bytes, created by
Felix Schumacher
on 2018-06-19 18:16:15 UTC
(
hide
)
Description:
Script to generate a jtl file that could be used for performance testing
Filename:
MIME Type:
Creator:
Felix Schumacher
Created:
2018-06-19 18:16:15 UTC
Size:
999 bytes
patch
obsolete
>#!/usr/bin/python >import csv > >with open('tests.jtl', 'w') as f: > w = csv.writer(f) > w.writerow(['timeStamp','elapsed','label','responseCode','responseMessage','threadName','dataType','success','failureMessage','bytes','sentBytes','grpThreads','allThreads','Latency','IdleTime','Connect']) > label = 'HTTP Request' > responseCode = 200 > responseMessage = 'OK' > dataType = 'text' > success = 'true' > failureMessage = '' > bytesReceived = 4320 > bytesSent = 121 > grpThreads = 100 > allThreads = 100 > timestamp = 1529430552272 > elapsed = 144 > latency = 143 > idleTime = 0 > connectTime = 69 > for i in range(50000): > timestamp += elapsed > for t in range(allThreads): > threadName = 'Thread Group %d-%d' % (t, allThreads) > w.writerow([timestamp, elapsed, label, responseCode, responseMessage, threadName, dataType, success, failureMessage, bytesReceived, bytesSent, grpThreads, allThreads, latency, idleTime, connectTime]) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 62426
: 35972 |
35973
|
35974