1 | initial version |
So I just realised that I was facing this problem due to running my code in debug mode. When I switched to release mode the performance was similar to that of python. I would leave this here incase someone runs in to similar problem making same mistake as me.