I’ve done it for the GPU, It’s here:
CPU can be tested in similar fashion,
memory you can use my membench to test: