benchmark encoding a single random value