In original inverse_newton_sqrt variable almost not defined/initialized.
Corrected it, and renamed variable result to root to make it clearer what it is, and added -- require 'benchmark/ips
so file would always insure that gem is loaded before benchmark is run.
…equire 'benchmark/ips'
In original
inverse_newton_sqrt
variablealmost
not defined/initialized. Corrected it, and renamed variableresult
toroot
to make it clearer what it is, and added --require 'benchmark/ips
so file would always insure that gem is loaded before benchmark is run.