How to make Faster Time Sampling for Arduino until 1 MHz?

There's no point sampling at such high speeds on an Uno or even a Mega, as they don't have anything
like enough RAM to store the samples in, or enough processing power to process them in real time.

You are looking for something more like a real DSP perhaps?

What are you looking to do?