I once saw a YouTuber that he cheated efficiency 300000 and now I would like to know how I can cheat that too.
You must have activated cheats in the world and then execute the command:
/ give @p diamond_pickaxe {Enchantments: [{id: efficiency, lvl: 300000}]} 1