As with all things in life, the answer is "It depends!"
About 17 years ago, I tried an electric bicycle for about 6 months - you can read of the experience and ultimate outcome
here.
e-Bikes have improved since then - they are a bit lighter and Li batteries are smaller but I think the general priciples remain.
* Road legal eBikes do not give assistance over 15mph. The maximum legal power supplement is 200-250W. They will get you up to speed faster, though.
* If you have hills to struggle up, the ebike will get you up them faster and so reduce your overall time.
Bottom line:
If 30 miles of cycling on the flat takes more than about 2:15 on a conventional bicycle, an ebike will be faster. If those 30 miles take less than 2 hours, don't bother!
If you have lots of hills where your speed drops below 10mph then, even if you can maintain 15mph
average, the amount of effort to do so with an eBike is quite a bit less.