There is no Sleep function in JavaScript (before ES6) like C or PHP. Function setTimeout() is not exactly a sleep function as it behaves like creating another thread for the scheduled task.
Performance
Babylon itself is not slow. It does nothing by itself. However, JavaScript is a dynamic language and isn't precompiled to machine code. As a result, it runs much slower than native C++ code.