3 ms·
Lisp is pretty slow in comparison to C, that's acceptable. As a quick self test stand up a C http server using gnu microhttp, hit it with AB or Wrk. Next stan
by jasonm23 9y ago
Lisp is pretty slow in comparison to C, that's acceptable.
As a quick self test stand up a C http server using gnu microhttp, hit it with AB or Wrk.
Next stand up a http server in sbcl (e.g. using wookie) and do the same AB or Wrk load test.
If you are expecting common Lisp to come close to C or even JVM you will be quite disappointed.
I know I was.
I love Lisp but it's a unwise to compare it with C on performance.
- TeMPOraL 9y agoWhat. I do entirely expect SBCL to come within factor of 2 to C (if you instrument your Lisp code with type declarations properly), and definitely to get JVM performance. And even unoptimized CL code I expect to run faster than Ruby, Python or JS. Modern CL implementations are good, and the language itself gives you plenty of ways to help the program compile down to efficient native code.
- flavio81 9y ago> Lisp is pretty slow in comparison to C, that's acceptable. It is not. (Common) Lisp can be made as fast as C if you really need it, by using tricks... By the way, for a while, the fastest HTTP static server was one written in Lisp, "teepeedee2", 2009. Fastest in the world.