A tune's difficulty can be measured in "potential fingerwork errors per second." For detailed information on how this is calculated, visit this blog post.