update cpu test to include timing
update gpu test to not use pointers