Benchmarking languages using the magic forest problem