Skip to content

Instantly share code, notes, and snippets.

@ReneHollander
Created January 16, 2018 23:34
Show Gist options
  • Save ReneHollander/98f8a231fc1725fc2e3e388bff5ed741 to your computer and use it in GitHub Desktop.
Save ReneHollander/98f8a231fc1725fc2e3e388bff5ed741 to your computer and use it in GitHub Desktop.
Optimized get_norm, normalize and two_means
using AVX
Adding items
Building index
Building took 33.094s
Searching took 10.231 ms
Searching took 9.681 ms
Searching took 9.142 ms
Searching took 9.829 ms
Searching took 9.401 ms
Searching took 10.197 ms
Searching took 9.478 ms
Searching took 10.072 ms
Searching took 10.02 ms
Searching took 9.316 ms
Done
Adding items
Building index
Building took 32.012s
Searching took 9.227 ms
Searching took 9.603 ms
Searching took 8.792 ms
Searching took 8.761 ms
Searching took 9.244 ms
Searching took 9.912 ms
Searching took 9.463 ms
Searching took 10.07 ms
Searching took 11.335 ms
Searching took 9.603 ms
Done
Adding items
Building index
Building took 32.273s
Searching took 9.263 ms
Searching took 9.51 ms
Searching took 8.73 ms
Searching took 8.701 ms
Searching took 9.107 ms
Searching took 9.574 ms
Searching took 9.225 ms
Searching took 9.684 ms
Searching took 9.619 ms
Searching took 9.093 ms
Done
Adding items
Building index
Building took 31.39s
Searching took 9.573 ms
Searching took 9.921 ms
Searching took 9.054 ms
Searching took 8.957 ms
Searching took 9.546 ms
Searching took 9.562 ms
Searching took 9.205 ms
Searching took 9.674 ms
Searching took 9.69 ms
Searching took 9.47 ms
Done
Adding items
Building index
Building took 31.235s
Searching took 9.61 ms
Searching took 9.807 ms
Searching took 9.052 ms
Searching took 9.119 ms
Searching took 9.401 ms
Searching took 10.081 ms
Searching took 9.466 ms
Searching took 9.932 ms
Searching took 9.993 ms
Searching took 9.488 ms
Done 
using AVX
Adding items
Building index
Building took 25.598s
Searching took 9.029 ms
Searching took 8.841 ms
Searching took 8.836 ms
Searching took 8.641 ms
Searching took 8.65 ms
Searching took 8.691 ms
Searching took 8.768 ms
Searching took 8.562 ms
Searching took 8.605 ms
Searching took 8.966 ms
Done
Adding items
Building index
Building took 25.826s
Searching took 8.992 ms
Searching took 8.788 ms
Searching took 8.771 ms
Searching took 8.68 ms
Searching took 8.691 ms
Searching took 8.639 ms
Searching took 8.784 ms
Searching took 8.61 ms
Searching took 8.614 ms
Searching took 8.958 ms
Done
Adding items
Building index
Building took 25.928s
Searching took 8.962 ms
Searching took 8.835 ms
Searching took 8.824 ms
Searching took 8.623 ms
Searching took 8.621 ms
Searching took 8.715 ms
Searching took 8.836 ms
Searching took 8.58 ms
Searching took 8.528 ms
Searching took 8.988 ms
Done
Adding items
Building index
Building took 25.711s
Searching took 9.002 ms
Searching took 8.845 ms
Searching took 8.784 ms
Searching took 8.597 ms
Searching took 8.641 ms
Searching took 8.732 ms
Searching took 8.817 ms
Searching took 8.554 ms
Searching took 8.614 ms
Searching took 8.98 ms
Done
Adding items
Building index
Building took 25.717s
Searching took 9.08 ms
Searching took 9.005 ms
Searching took 9.125 ms
Searching took 9.013 ms
Searching took 9.017 ms
Searching took 8.854 ms
Searching took 8.885 ms
Searching took 8.761 ms
Searching took 8.686 ms
Searching took 8.924 ms
Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment