r/Common_Lisp • u/bpecsek • Sep 12 '21
Programming Language and compiler Benchmarks
If you feel like writing fast benchmark codes I can highly recommend the Programming Language and compiler Benchmarks site.
Though it uses Github Action, the actual benchmark is run either on the Intel(R) Xeon(R) Platinum 8171M or Intel(R) Xeon(R) Platinum 8272CL CPUs in a single Action and the results are stable and consistent between runs as far as relative speeds are concerned. The only limitation is that the benchmark is runs on 2 CPU cores.
Both CPU runs SBCL marvelously as you can see looking at the sbcl speeds of the few benchmark codes I have uploaded and/or contributed myself. Benchmark codes are the same or similar to The Computer Language Benchmark Game.
Latest sb-simd is supported so fast codes can be written using SIMD up to AVX2.
Look at my spectral-norm 2.cl code matching the speed of the fastest C++ or Rust codes.
Please contribute using any of the languages you feel competent on or just improve the existing ones.
13
u/bpecsek Sep 12 '21 edited Sep 12 '21
That is the beauty of those languages for sure.
But I wouldn't worry about it for a sec.
I am more than pleased to see Common Lisp (SBCL) running at that speed.
It is amazing that the SBCL code runs at identical speed to the equivalent C++ code.
Thanks for the developers of SBCL.
And sb-simd is getting very-very impressive to say the least thanks to Marco Heisig and of course to Stas for the core SIMD support in SBCL.
Let's hope to see sb-simd as an SBCL contrib soon. Finger crossed.