I think this shows the value of programmer productivity over performance at all costs. Python is one of the most popular languages despite having performance issues for complex algorithms. Users value clarity and ease of expression over performance. That's why Python is primarily used a glue code in these complex tasks.
Benchmarking 20 programming languages on N-queens and matrix multiplication
111–120 of 194 posts
Re: Benchmarking 20 programming languages on N-queens and matrix multiplication
#112I think this shows the value of programmer productivity over performance at all costs. Python is one of the most popular languages despite having performance issues for complex algorithms. Users value clarity and ease of expression over performance. That's why Python is primarily used a glue code in these complex tasks.
Re: Benchmarking 20 programming languages on N-queens and matrix multiplication
#113Why not run C# as AOT? It’s a one line change.
Do people usually run C# code AOT compiled?
[0] - https://docs.aws.amazon.com/lambda/latest/dg/dotnet-native-a...
Re: Benchmarking 20 programming languages on N-queens and matrix multiplication
#114Re: Benchmarking 20 programming languages on N-queens and matrix multiplication
#115Earlier quoted context omitted.
The rust code is very unidiomatic, not only because of the Vec of Vecs which I’d say, even if it’s the obvious naive approach, no one experienced wouldn’t choose over a flat slice, the implementation itself is very naive and unidiomatic.
Also it's using checked indexing, which apart from being not idiomatic, is also going to slow things down. A fairer comparison would be to use the unchecked indexing variants.
Re: Benchmarking 20 programming languages on N-queens and matrix multiplication
#116> ” Timing on Apple M1 Macbook Pro” Given that its become increasingly more common for CPUs to have both Performance & Efficency cores … how do benchmarks ensure they are only being run on the P-cores?
Re: Benchmarking 20 programming languages on N-queens and matrix multiplication
#117Re: Benchmarking 20 programming languages on N-queens and matrix multiplication
#118Aren’t JIT languages at a disadvantage since they are benchmarked through the CLI rather than using a benchmarking library to allow JIT to warmup?
Yes, but the author claims the longest JIT warmup is 0.3 seconds, so it's not an important issue in these benchmarks that take several seconds.
Re: Benchmarking 20 programming languages on N-queens and matrix multiplication
#119OP - are you interested in pull requests adding support for other languages?