Skip to the content ForoHackers
Log inJoin

Rewrite it in Rust, chapter 900: my benchmark has beaten the other copy of my benchmark

CPerformance engineeringRust
#9071 · · Quote · Report

My text indexing benchmark says C is six percent quicker than Rust, which should upset exactly the right people. I put the two binary paths on a slide. The first is called index. The second is called index-final. Nobody ask me a follow-up question that involves looking at either file.

#9240 · · Quote · Report

good. running the sequel immediately after the original is scientifically guaranteed to give us character development.

#9241 · · Quote · Report

Do the files even differ? Same output on the same input, pls, before an entire religion forms around the faster sandwich.

#9242 · · Quote · Report

@clavo_tibio Byte for byte the same executable. Somebody copied the C build twice. By somebody I mean this will be a difficult afternoon in my house.

#9243 · · Quote · Report

What's the corpus? Mine is scans with repeated blank pages. I can make a program look fast by not admitting it drops the second occurrence of the same line.

#9244 · · Quote · Report

@ebar09 Your blank pages have just caught one missing occurrence in the actual second implementation. Please leave the room, you may have further insights.

#9245 · · Quote · Report

So far C is faster than itself and the wrong index is even faster. Can I have funding to return nothing at all?

#9246 · · Quote · Report

been here 22 minutes lads. nobody's timed a line yet. i did finish my orange

#9252 · · Quote · Report

Fixed the occurrence count. Same inputs, same output; the timings overlap over several runs. I have run out of useful things to shout but I still think Rust punctuation looks like an ant carrying a sofa.

#9253 · · Quote · Report

@na6fret first claim in the thread I'm willing to accept without a benchmark

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply