News for hackers. Stuff that matters.
Re:Making Rust as Fast as Go by _____smurf_____ on Sunday May 03, 2020 @03:59PM (#23061420)
Given this information, and for general parsing functionalities, which one is faster, Go or Rust?
Re:Making Rust as Fast as Go by arcticbull on Sunday May 03, 2020 @04:28PM (#23061623)
As always, it depends on what your goals are. String processing is usually not the long pole when you're building something that consumes the output of a parser. Based on micro and macro benchmarks, Rust is typically substantially faster than Go and pretty much always uses less RAM [1].

But again, depends what you're doing with the output, and if these deltas even matter in your context.

[1] https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

Re:Making Rust as Fast as Go by fluffything on Sunday May 03, 2020 @04:18PM (#23061556)
You can write a parser as far as the limits of your imagination allow in Rust, or C, or any other baremetal language without a thick run-time.

In Go, beyond the limits of your imagination, you'll also hit other limits, like those of the garbage collector.