Benchmarking 20 programming languages on N-queens and matrix multiplication
101–110 of 194 posts
Re: Benchmarking 20 programming languages on N-queens and matrix multiplication
#102Earlier quoted context omitted.
In some cases there are other reasons for hoiting the dereference too. For example, Crystal will check if the array access is out of bounds and by hoisting variables that will be done a lot less seldom, which can have huge effects for code that does a lot of that, like matmul.
Doesn’t that get mostly optimised away by the cpu branch prediction?
If you have enough idle execution units, you might not see a difference in wall clock time. But with many algorithms you can put those units to good use.
Re: Benchmarking 20 programming languages on N-queens and matrix multiplication
#103What is this supposed to demonstrate? There appears to be roughly the same code structure, ported to every language, while for some languages, arbitrary optimizations are introduced (such as using `array` instead of `list` in Python). But nobody working in Python uses matrix multiplication code written in Python. They use NumPy, which is a de facto standard library for people working in the relevant fields. It's as m…
It is supposed to show the performance of a language when you have to implement a new algorithm in the language. This may happen if you can't find the algorithm in existing libraries. If you don't like matmul, ignore it and focus on nqueen, sudoku and bedcov.
Re: Benchmarking 20 programming languages on N-queens and matrix multiplication
#104Re: Benchmarking 20 programming languages on N-queens and matrix multiplication
#105Re: Benchmarking 20 programming languages on N-queens and matrix multiplication
#106Why is c# so slow for Matmul compared to java?
Re: Benchmarking 20 programming languages on N-queens and matrix multiplication
#107Re: Benchmarking 20 programming languages on N-queens and matrix multiplication
#108Re: Benchmarking 20 programming languages on N-queens and matrix multiplication
#109N-queens and matrix benchmark without Fortran and Wolfram Mathematica?
Re: Benchmarking 20 programming languages on N-queens and matrix multiplication
#110Why is c# so slow for Matmul compared to java?
The implementation isn’t using any modern C# features?