It lags because you are printing to console every frame (times 3). Printing something to console takes a lot of time (relatively) and so when you do this every frame, things start to slow down.
Try to limit the amount you are printing.
↧