Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 21st, 2012  |  syntax: None  |  size: 0.28 KB  |  views: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var data = [];
  2. var i=0;
  3. for (i=0;i<50000;i++) {
  4.  data.push([Math.random(),Math.random()])
  5. }
  6. var swapedData = [];
  7.  
  8. console.log(+new Date())  //1332356389339
  9. for (i=0;i<data.length;i++){
  10.   swapedData[i] = [data[i][1], data[i][0],]
  11. }
  12. console.log(+new Date()) //1332356389548