Both words work in BrE. However, "whilst" feels formal and perhaps faintly old-fashioned. I think that "whilst" is not used much at all in AmE. For these reasons, it is probably best to use "while".
It could be that the singular "speed" and "acceleration" work better in this context.
You are probably aware that what you have posted is not a complete sentence.