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
20082026
-
This appears to be the parsing code: https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/...
comment by Azquelt · 2026-05-23 · in Parsing IPv6 Addresses Crazily Fast with AVX-512 -
…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?…
comment by mustache_kimono · 2024-09-28 · in It is never too late to write your own C/C++ command-line utilities -
yes. The result is max bandwidth in GB/s https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/...
comment by d0mine · 2024-01-19 · in How much memory bandwidth do large Amazon instances offer? -
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 -
…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…
comment by eesmith · 2023-08-21 · in Transcoding Latin 1 strings to UTF-8 strings at 12 GB/s using AVX-512 -
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 -
…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/...
comment by morelisp · 2023-07-02 · in Parsing time stamps faster with SIMD instructions -
…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…
comment by eesmith · 2023-05-02 · in Under Linux, libSegFault and addr2line are underrated -
…[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 -
…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/...
comment by ascar · 2021-03-18 · in Apple’s M1 processor and the full 128-bit integer product -
…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/...
comment by brigade · 2021-03-18 · in Apple’s M1 processor and the full 128-bit integer product -
…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…
comment by canucker2016 · 2021-02-22 · in Fast character case conversion, or how to really compress sparse arrays -
…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 -
The article shared the full configuration – perhaps you missed it? https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/...
comment by acdha · 2020-12-13 · in ARM MacBook vs. Intel MacBook: A SIMD Benchmark -
Lines 19 and 27 in the source: https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/...
comment by ricardobeat · 2019-07-27 · in How fast can a BufferedReader read lines in Java? -
…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/...
comment by timerol · 2019-04-17 · in Parsing short hexadecimal strings efficiently -
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 -
…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…
comment by glangdale · 2019-03-20 · in ARM and Intel have different performance characteristics: a case study -
ha! https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/...
comment by easytiger · 2018-05-16 · in Validating UTF-8 strings using as little as 0.7 cycles per byte -
…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/...
comment by nkurz · 2016-12-06 · in Don’t assume that safety comes for free: a Swift case study -
…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…
comment by nkurz · 2016-12-06 · in Don’t assume that safety comes for free: a Swift case study -
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? -
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?