binary trees benchmark demo

This demo is from the computer language benchmark game. It's a torture test for the Lua garbage collector. ProTip: Try loading this page while the terminal memory monitor feature is active, so you can see memory shuffle around in a dual screen display. We use setrlimit to set a 512mb memory limit. So if you specify a number higher than 23 (a good meaty benchmark) then the Lua GC should panic a bit trying to recover (due to malloc failure) and ultimately the worker process should die. However the server and your system will survive.