2 ms·
The github repo has benchmark versions of most of their examples that include built-in timers. I just checked both versions the "reverse a string" example (a s
by LordGrey 5y ago
The github repo has benchmark versions of most of their examples that include built-in timers. I just checked both versions the "reverse a string" example (a single-core and a multi-core version) in an Ubuntu 20.04 VM:
Single core: 2838.660s (47.31 minutes)
Multi-core: 843.828s (14.06 minutes)
The multi-core version was using four CPU cores, so slightly worse than a linear performance increase. Both versions lit up the fans in my MacBook Pro pretty hard.
The string in question, by the way, was "hello" -- five characters long.
Does this terrible performance match your previous findings? It is so bad I'm wondering if there is something wrong with my dev environment.