Comparing an Arduino DC-DC boost converter with LM2577 modules
A simple module based on the LM2577 or XL6009 or (tip) SX1308 will:

just work. Open some expensive measurement equipment and in some you might find module based DCDC converters. These are expensive! Why are they used anyway? Because these just work. Engineers don't want to waste their time on something that can be bought as a ready-to-go module. Those modules are designed by engineers that specialize in DCDC converters so they can be relied upon. The cheap modules form China aren't that good quality but still much better than an Arduino based DCDC converter.

be much more robust, if the software in the Arduino craches and the MOSFET is switched on all the time, components will be damaged and best case, the battery will be emptied. The DCDC converter chips do not run software so cannot crash. Also they have overheating and overcurrent protection. The Arduino solution does not.

be best if you want low battery power consumption

be much cheaper.


All in all, I see no reason whatsoever to make your own DCDC converter. The only reason to build one is for educational purposes, but then be prepared that components might be damaged (use a current limited 5 V supply to prevent that).