Created
February 11, 2014 12:46
-
-
Save jakosz/8934230 to your computer and use it in GitHub Desktop.
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
# Fire all three functions on an igraph object and get the execution times: | |
test_times <- | |
function(g, width, height) { | |
return(list( | |
tig = system.time(plot_igraph(g, file = 'igraph.png', width = width, height = height)), | |
tse = system.time(png_segments(g, file = 'segments.png', width = width, height = height)), | |
tmc = system.time(plot_segments_mc(g, file = 'segments_mc.png', width = width, height = height)), | |
imt = as.numeric(.imTime) | |
)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment