Hacker GitHub

← All repos

lemire/Code-used-on-Daniel-Lemire-s-blog

View on GitHub ↗ ★ 968 C++

This is a repository for the code posted on my blog

23 mentions on Hacker News by 21 people: 0 stories, 23 comments · first 2012-07-24 · latest 2026-05-23

Mentions per year 23 mentions · busiest year 2019 (4)
20082026
  1. This appears to be the parsing code: https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/...
  2. …anyone believe the C++ cited is all the C++ required to make this work? Go see the C++ as tested: https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/... By this I mean -- if Python isn't fast enough -- isn't that why we have Rust?…
  3. yes. The result is max bandwidth in GB/s https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/...
  4. I was curious and get vastly different numbers on my machine. I grabbed this and compiled it with gcc https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/... g++ -std=gnu++17 -O3 -o bandwidth bandwidth.cpp && ./bandwidth > 50.0 >…
    comment by dietr1ch · 2024-01-16 · in Estimating your memory bandwidth
  5. …Quoting the article "I use GCC 11 on an Ice Lake server. My source code is available.", linking to https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/... . From the README at the top-level: > Unless otherwise stated, I make no…
  6. It's not bad at all https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/...
    comment by DonPellegrino · 2023-07-02 · in Parsing time stamps faster with SIMD instructions
  7. …We can just use standard C code for the result." - and is very obviously in the GitHub code. https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/...
  8. …missing in the example code. As given there's a segfault at line 5 not line 6. However, the code at https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/... shows it's indeed at line 6, because it has an extra newline after the…
  9. …[0]. Is it needed or just a copy and paste mistake? (I know nothing about vector instructions) 0: https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/...
    comment by ItsRainingBits · 2022-09-14 · in Escaping strings faster with AVX-512
  10. …in the assembly add x8, x8, #2 So if I see this correctly the results are off by a factor of 2. [1] https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/...
  11. …x14 str x13, [x0, x8, lsl #3] add x8, x8, #2 // =2 cmp x8, x1 add x11, x11, x9 b.lo .LBB5_2 [1] https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/...
  12. …though - Daniel Lemire has a recent post which can be used as a scaffold for benchmarking. Code: https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/... Post: https://lemire.me/blog/2021/02/09/on-the-cost-of-converting-... If the…
  13. …on. If you only look at the article this is true. However, the source code is freely available: https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/...
    comment by SekstiNi · 2021-01-06 · in Memory access on the Apple M1 processor
  14. The article shared the full configuration – perhaps you missed it? https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/...
  15. Lines 19 and 27 in the source: https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/...
  16. …32 bit math as 4 8-bit lanes. This has been added to the repo, and is discussed in the comments. https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/...
  17. His code https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/... does not use OpenMP. Different benchmarks favor different processors… Here's another one, now multi-threaded My quick run of `sysbench cpu` (something with prime…
    comment by floatboth · 2019-03-31 · in Ampere EMAG 64bit Arm Workstation
  18. …As for loading large constants, if you read the post and follow the link at "reuse my benchmark" ( https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/... ) you will see that these functions as measured are inside hot loops. As…
  19. ha! https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/...
  20. …request, and I'd bet he'd be happy to include them for comparison and mention them in an addendum: https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/...
  21. …0.337) 100000000 (0.339, 0.339, 0.340, 0.339) 1000000000(0.344, 0.344, 0.344, 0.344) Code is from https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/... with modification to loop over the different array lengths. Numbers are for…
  22. Here's the link to the github account where the code is: https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/... Even if they're doing whole program analysis, the fact that oeprator<<() and WallClockTimer.split() are side-effectful…
    comment by Symmetry · 2012-07-24 · in Is C/C++ worth it?
  23. Code is at https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/... Fwiw, I just ran it after fixing the time call, and it doesn't seems to significantly change the result on my (low spec) machine.
    comment by Wilya · 2012-07-24 · in Is C/C++ worth it?