Test Bouncy Castle performance