Add magnitude calculation benchmarks.