Daniel Lemire's blog
lemire.me
Add New Subscription
Post
(required) *
Required; the Post you're subscribing to.
Comment
— All Comments/Replies —
Aug 9th, 2022 7:02 pm — "zahir" writes: Also, using printf instead of std::cout [...]
Aug 9th, 2022 7:17 pm — "Jason Moore" writes: I am certainly not an expert in C++. How[...]
Aug 9th, 2022 7:57 pm — "Anonymous Coward" writes: This isn’t exactly news. The C++ speci[...]
Aug 9th, 2022 8:11 pm — "Jonas Minnberg" writes: Remove the std::endl and put the \n in t[...]
Aug 9th, 2022 8:39 pm — "John Keubler" writes: I try to stick with C and use macros if [...]
Aug 9th, 2022 8:43 pm — "Alex Chen" writes: Isn’t this, to some extent, testing th[...]
Aug 9th, 2022 8:46 pm — "Cassie" writes: I have a concern about your conclusion h[...]
Aug 9th, 2022 9:09 pm — "Pa" writes: Endl is slower than “\n”, you should[...]
Aug 9th, 2022 9:20 pm — "Charles" writes: Try removing stdlib in both programs. Re[...]
Aug 9th, 2022 9:32 pm — "Jakob Kenda" writes: There is a difference in your C++ code a[...]
Aug 9th, 2022 9:46 pm — "Oliver Schonrock" writes: Perhaps differences in lib and not lib l[...]
Aug 9th, 2022 10:01 pm — "Hebigami" writes: I’m not a professional C or C++ dev bu[...]
Aug 9th, 2022 10:09 pm — "Cassie" writes: I’ve done some followup testing. It ap[...]
Aug 9th, 2022 10:10 pm — "Mark Rohrbacher" writes: Hello Mr. Lemire, IMHO, the comparison o[...]
Aug 9th, 2022 10:22 pm — "Tim Parker" writes: This is such a beautiful example of meas[...]
Aug 9th, 2022 10:27 pm — "Dave" writes: This is based on biased info from decade[...]
Aug 9th, 2022 10:30 pm — "Evan Teran" writes: The C++ program is doing more work than [...]
Aug 9th, 2022 11:23 pm — "John Halmaghi" writes: << std::endl inserts a newline AND flush[...]
Aug 10th, 2022 12:19 am — "Hermas Mohamed" writes: give it a try without std::endl https://[...]
Aug 10th, 2022 12:26 am — "marc" writes: This is not an accurate, endl also inclu[...]
Aug 10th, 2022 1:53 am — "yueshan" writes: cout do lots of things you should know
Aug 10th, 2022 1:55 am — "Jeff Bailey" writes: iostreams are not a minor bit of infrast[...]
Aug 10th, 2022 2:01 am — "Daniel Lemire" writes: The blog post is specifically about “h[...]
Aug 10th, 2022 4:42 am — "Richard Cervinka" writes: There is no difference between std::endl[...]
Aug 10th, 2022 4:51 am — "zahir" writes: IMHO it is all about linking with the li[...]
Aug 10th, 2022 5:28 am — "Davide Angelocola" writes: Hello Lemire, in C++, operations are syn[...]
Aug 10th, 2022 5:37 am — "mariusz" writes: Exactly.
Aug 10th, 2022 6:41 am — "Chris" writes: It is a well established fact that C++ d[...]
Aug 10th, 2022 6:49 am — "Ofek Shilon" writes: When used correctly (specifically, with [...]
Aug 10th, 2022 7:28 am — "John M" writes: I’m glad neither I, nor my children, a[...]
Aug 10th, 2022 7:35 am — "John" writes: In your updated C++ code (multi_hello.cp[...]
Aug 10th, 2022 9:36 am — "Mirko" writes: This code is a really bad comparison. Th[...]
Aug 10th, 2022 9:41 am — "gepronqx" writes: C is not functional at all. C is procedural.
Aug 10th, 2022 11:11 am — "Niclas" writes: I have a lot of respect for your work, s[...]
Aug 10th, 2022 11:56 am — "Mirko" writes: This code doesn’t show C++ being slowe[...]
Aug 10th, 2022 12:29 pm — "Drue" writes: Everyone else has already mentioned how [...]
Aug 10th, 2022 12:34 pm — "Richard Hickling" writes: These days you should use “`std::fmt ([...]
Aug 10th, 2022 12:37 pm — "wqw" writes: Students using C++ streams in programmin[...]
Aug 10th, 2022 1:06 pm — "tetsuoii" writes: What you have discovered is just the tip[...]
Aug 10th, 2022 1:12 pm — "Eric Hopper" writes: I can show you C++ programs that run rin[...]
Aug 10th, 2022 1:41 pm — "Jack Mazierski" writes: If all you write is hello world then all[...]
Aug 10th, 2022 2:54 pm — "Hebigami" writes: Thanks wqw! I was aware of sync_with_std[...]
Aug 10th, 2022 3:24 pm — "Preston L. Bannister" writes: This is a micro-benchmark that illustrat[...]
Aug 10th, 2022 3:56 pm — "Tim Parker" writes: You’re not measuring what you think yo[...]
Aug 10th, 2022 4:06 pm — "Catron" writes: You didn’t provide what compiler you u[...]
Aug 10th, 2022 4:38 pm — "Daniel Lemire" writes: I use a straight Ubuntu 22 and the Makef[...]
Aug 10th, 2022 6:06 pm — "Davide Cunial" writes: I think a fair comparison would be to do[...]
Aug 10th, 2022 6:52 pm — "Sachin" writes: Please will you mail me some samples at [...]
Aug 10th, 2022 7:07 pm — "Tim Parker" writes: “This is a micro-benchmark that illust[...]
Aug 10th, 2022 7:13 pm — "Alf Peder Steinbach" writes: Well that’s a false meme, associative [...]
Aug 10th, 2022 7:53 pm — "Eric Hopper" writes: This program will run faster than any C [...]
Aug 10th, 2022 8:09 pm — "Sam Mason" writes: After an extended play with this I would[...]
Aug 10th, 2022 8:14 pm — "Eric Hopper" writes: Sorry to post more than one comment. I w[...]
Aug 10th, 2022 8:21 pm — "Daniel Lemire" writes: It is true that C++ has many advantages [...]
Aug 10th, 2022 9:13 pm — "Scott" writes: I guess my response would be “duh”. [...]
Aug 10th, 2022 9:57 pm — "Menotyou" writes: Comments are Better than the article IMO
Aug 10th, 2022 10:11 pm — "Stephen Tran" writes: Can you do a test to show that for small[...]
Aug 10th, 2022 11:34 pm — "Schrodinbug" writes: No…I think that’s fake news… I’v[...]
Aug 10th, 2022 11:46 pm — "Schrodinbug" writes: Iostreams are known to have performance [...]
Aug 10th, 2022 11:51 pm — "Cal Gray" writes: The title should be “C++ streams are s[...]
Aug 11th, 2022 12:02 am — "sl2" writes: How about a test where you simply output[...]
Aug 11th, 2022 12:22 am — "Amin Yahyaabadi" writes: Instead, I suggest you to use libfmt ins[...]
Aug 11th, 2022 5:09 am — "Roman Avtukhoff" writes: Because used std::
Aug 11th, 2022 7:52 am — "Tim Parker" writes: At an extreme, you could try something l[...]
Aug 11th, 2022 9:13 am — "Marcos" writes: It would be more accurate if you printed[...]
Aug 11th, 2022 9:24 am — "Jimmy Ellison" writes: You could throw in some dirty inline ass[...]
Aug 11th, 2022 10:07 am — "Matti Laa" writes: “This is because of the static initial[...]
Aug 11th, 2022 10:22 am — "Matti Laa" writes: It does, if you remove #include header
Aug 11th, 2022 11:23 am — "Francis Mossé" writes: When problems are large or complex, the [...]
Aug 11th, 2022 3:01 pm — "Daniel Lemire" writes: The programs are compiled with optimizat[...]
Aug 11th, 2022 5:01 pm — "Raffaello Bertini" writes: Doing a benchmark of such small time can[...]
Aug 11th, 2022 5:14 pm — "Raffaello Bertini" writes: One small improvement on this test could[...]
Aug 11th, 2022 7:06 pm — "Tim Parker" writes: As long as you’re not trying to measur[...]
Aug 11th, 2022 10:25 pm — "cdevaw" writes: GCC does remove printf() and inserts put[...]
Aug 12th, 2022 2:08 am — "Jonathan" writes: Incorrect. This isn’t valid performanc[...]
Aug 12th, 2022 12:37 pm — "Justin M. LaPre" writes: Did you try passing -fno-exceptions and [...]
Aug 12th, 2022 1:21 pm — "Eric Hopper" writes: It isn’t that the implementation of so[...]
Aug 14th, 2022 9:35 am — "Tim Parker" writes: As the post as been significantly re-wri[...]
Aug 14th, 2022 4:21 pm — "Daniel Lemire" writes: Thanks. Unfortunately people repeatedly [...]
Aug 16th, 2022 3:00 pm — "Daniel Lemire" writes: Eric, you are interpreting my post to sa[...]
Aug 21st, 2022 5:00 am — "rhpvorderman" writes: The C printf() and stdio library was hon[...]
Aug 21st, 2022 2:21 pm — "Dominic Amann" writes: What this shows (and really all this sho[...]
Email
(required) *
First Name
(required) *
Last Name
Deliver
(required) *
instantly
hourly
daily
weekly
Any value that is not
instantly
results in a digest instead of instant notifications.