Hello, praised - and welcome to English Forums. The punctuation in your sentence is correct, but the use of 'then' is rather informal, and I suggest that you recast: The computation was subsequently performed for all the texts.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.