powturbo / turbo-histogram Goto Github PK
View Code? Open in Web Editor NEWFastest Histogram Construction
License: Other
Fastest Histogram Construction
License: Other
I got a substantial boost of speed on your hist_8_64 by changing the size of your bin[] arrays to prevent 4K aliasing. The issue is that when the CPU is trying to disambiguate memory accesses, it looks only at the low 12 bits (4KB). If two addresses have the same low bits (and maybe some other stuff?), it falsely thinks that they collide. The net effect is that you are only getting the benefit of 4 bins rather than 8. If you change the size of your buffers to be (256+16) bytes, the same character will no longer alias in any of the bins.
(I'm about to post a comment on Yann's blog, and will include a link to my updated source)
I'm able to test the speeds on Haswell, but wanted to use the same test files that you did so the numbers are directly comparable. I'm not familiar with the standard benchmarks in this area, and worry I might grab the wrong file if I guess. Could you provide a direct download link to the the files in the README, or exact directions for creating them?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.