This comment doesn’t even make sense. For example, the USA government spent 37% compared to the GDP.
If you mean 10% of government spending towards science then that question makes sense.
The USA spends about $75billion of the $800billion defense budget on R&D. It spends another $120billion on non-defense R&D.
Which is about 1/31 of federal spending for the US.
But we spend nearly $200 billion just paying salaries. We spend the most because we are also an expensive country to live in and that means paying the folks who volunteer a decent wage.
We would have to significantly downsize the military personnel and pretty much operate as homeland defense only.