Modern file systems do not need defragmenting. It was something that was only really done with FAT.
Typically I saw 30% to 100% performance improvements on ext4 by deleting and restoring database directories.
You can see disk fragmentation on linux with the filefrag and other commands.