Guest User

Untitled

a guest
Oct 19th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. library(rbenchmark)
  2. res <- benchmark( cosine(mat),
  3. cosineRcpp(mat),
  4. columns=c("test", "replications", "elapsed",
  5. "relative", "user.self", "sys.self"),
  6. order="relative",
  7. replications=1000)
  8.  
  9. res
  10. test replications elapsed relative user.self sys.self
  11. 2 cosineRcpp(mat) 1000 149.974 1.000000 139.389 7.356
  12. 1 cosine(mat) 1000 161.268 1.075306 148.613 10.069
Add Comment
Please, Sign In to add comment