Stuff like that adds up. It's why Lua is so fast compared to JS, too.
Stuff like that adds up. It's why Lua is so fast compared to JS, too.
(defun get-x () x)
(defun foo (let ((x 7)) (get-x)))
(foo) ;; => 7 (not shadowing x)
(let ((x 4)) (foo)) ;; => 7 (is shadowing x)
(setq old-get-x #'get-x)
(defun get-x () (let ((x 10)) (funcall old-get-x)))
(foo) ;; => 10https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
http://luajit.org/performance_x86.html
As an aside, I see there a gitlab project for the benchmark game - but I was surprised there doesn't appear anyone has put together an automated, open, bring your own language/code/patches version? Maybe with some community voting (eg: prefer idiomatic vs max speed)?
https://salsa.debian.org/benchmarksgame-team/benchmarksgame/...
Why haven't you? That's probably why no one else has :-)
Instead be surprised that someone has continued to push the benchmarks game along, and that people have continued to contribute programs gratis.
I suspect it might have to do with resources - dedicating multiple cores to benchmarking isn't going to be easy to do for free. Might be feasible for low cost, though.