This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env julia | |
using CSV | |
using DataFrames | |
using Printf | |
using Statistics | |
function displayreport(df::DataFrame) | |
errors = count(y -> (y .== "E"), skipmissing(df.code)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env julia | |
using Printf | |
using Statistics | |
function process(mixfile::String) | |
ctime0 = missing | |
RampupTime = 0 | |
StartTime = missing | |
SteadyStateTime = missing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env Rscript | |
mixfile = commandArgs(trailingOnly=TRUE)[1] | |
mix <- read.csv(file=mixfile, header=F) | |
colnames(mix) <- c('ctime', 'txn', 'status', 'response', 'pthread') | |
# Get the ctime after the START marker and the ctime before the first | |
# TERMINATED marker. | |
start <- mix[1,]$ctime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
from math import ceil, floor, fsum | |
def average(values): | |
count = float(len(values)) | |
if count == 0: | |
return 0 | |
return fsum(values) / float(len(values)) |