def format_comparison(a, b):
    if ((a < b) and (a != 0)):
        return ("<span style='color:green;font-weight:bold;'> {:10.2f}".format((b / a)) + 'x FASTER</span>')
    elif (b != 0):
        return ("<span style='color:red;font-weight:bold;'> {:10.2f}".format((a / b)) + 'x SLOWER</span>')
    else:
        return "<span style='color:red;font-weight:bold;'> NaN </span>"
def format_comparison(a, b):
    if ((a < b) and (a != 0)):
        return ("<span style='color:green;font-weight:bold;'> {:10.2f}".format((b / a)) + 'x FASTER</span>')
    elif (b != 0):
        return ("<span style='color:red;font-weight:bold;'> {:10.2f}".format((a / b)) + 'x SLOWER</span>')
    else:
        return "<span style='color:red;font-weight:bold;'> NaN </span>"