Which figure of speech is used in this text?
It was the best of times, it was the worst of times.
—Charles Dickens, A Tale of Two Cities

 - antithesis
 - assonance
The text uses antithesis, the contrasting of opposing ideas within a parallel grammatical structure.
Dickens contrasts opposing views of the same time period using the words the best and the worst in parallel clauses.