How do you measure octane in fuel?

with an octane mesurer