Skip to content

Instantly share code, notes, and snippets.

@StefanKarpinski
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StefanKarpinski/9e21fca61f25798db32e to your computer and use it in GitHub Desktop.
Save StefanKarpinski/9e21fca61f25798db32e to your computer and use it in GitHub Desktop.
using DataFrames, Gadfly
exl = readtable("excellent.csv", names=[:variant,:digits,:time])
agg = aggregate(groupby(exl,[:variant,:digits]), median)
agg = agg[sortperm(agg[:variant], by=first, rev=true),:]
rel = join(
agg[agg[:variant].!="julia3",:],
agg[agg[:variant].=="julia3",:],
on=:digits, kind=:left
)
rel[:ratio] = rel[:time_median]./rel[:time_median_1]
ticks = Guide.xticks(ticks=sort!(unique(exl[:digits]))
p_time = plot(
agg, x=:digits, y=:time_median, color=:variant, ticks,
Scale.y_log10, Geom.point, Geom.line,
Guide.ylabel("median execution time (s)")
)
p_ratio = plot(
rel, x=:digits, y=:ratio, color=:variant, ticks,
Geom.point, Geom.line,
Guide.ylabel("time relative to julia3")
)
draw(PNG("excellent_time.png", 6inch, 3inch, dpi=600), p_time)
draw(PNG("excellent_ratio.png", 6inch, 3inch, dpi=600), p_ratio)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment