Just looking at p/e and p/s ratios is not enough.
Amazon also had a p/e over 100 and a p/s over 10 in its earlier history.
You also have to look at the market size these companies are addressing while having few competitors.
Tesla for example is addressing "driving cars" with its self-driving project. There are 2B cars on the road. If we value driving them at $5 per day, that is $5 * 365 * 2B = $3650B in annual value. Capturing 10% of that would be $365B per year. At a p/e of 30 that is over $10T - ten times Tesla's current market cap.