Optimization Mods Collection: NoCollision
NoCollision is a datapack that significantly improves Minecraft performance by disabling collisions for several passive mobs. This solution positively impacts both FPS and TPS, with especially noticeable effects on the latter indicator.
How the modification works
This datapack eliminates physical interaction between certain passive mobs, reducing load on the CPU and graphics card. This becomes particularly useful in situations where many animals are gathered in one area.
Installation is simple — after adding to the world folder, everything starts working automatically.

Screenshot: Performance indicators before installing the mod
Noticeable slowdown and stuttering

After installing NoCollision
Significantly less lag, with even more noticeable difference depending on the operating system!
Removing the modification
To remove it, use the /reload command and click the uninstall button, or execute the /function no_collision:uninstall command. After successful removal, make sure to physically extract the datapack from the world folder, otherwise it will automatically restore upon next reload and you'll need to repeat the procedure.