Hi, Sergey,
thanks for the patch!
Sergey
<snipped>
+ checker = function(res) + if N == DEFAULT_N then + assert(res[0] == 2488465) + assert(res[1] == 1299069) + assert(res[2] == 679461)
Minor: I would leave a comment about magic numbers or use variables with self-explained names.
Feel free to ignore.
+ end + return true + end, +} + +bench:add(benchmark) +bench:run_and_report()