>It runs slowly on it's own but if I do it it runs really quickly.
when you run it manually on command line, it runs as root. when it's scheduled to run by cron through vBulletin, it should run as a user or nobody ? non-root user may be restricted by limited resources, for example cloudlinux is...