class icon indicating copy to clipboard operation
class copied to clipboard

benchmarks for VDF

Open omershlo opened this issue 5 years ago • 3 comments

add benchmarks for different parameters and measure the absolute and relative times of Eval and Verify

If possible, compare it to: https://github.com/harmony-one/vdf https://github.com/poanetwork/vdf

omershlo avatar Dec 01 '19 08:12 omershlo

How performant does one expect the library to be compared to, say Sundersoft, which won the Chia networks competition?

jon-chuang avatar Feb 25 '20 04:02 jon-chuang

This is a good question!

  1. The foundations of this library are built using Pari which is optimised c code for class group operations
  2. However, I suspect that our translation from/to Pari to/from our GMP bigint is not so efficient.
  3. BigInt operations are suppose to be reasonably efficient.

Overall I would assume the code will be slower than Sundersoft, but :

  1. probably within same order of magnitude
  2. specifically for VDF, the gap quality between generating and solving will be the similar
  3. There is a LOT of room for improvement in this library

omershlo avatar Feb 25 '20 09:02 omershlo

This is a good question!

  1. The foundations of this library are built using Pari which is optimised c code for class group operations
  2. However, I suspect that our translation from/to Pari to/from our GMP bigint is not so efficient.
  3. BigInt operations are suppose to be reasonably efficient.

Overall I would assume the code will be slower than Sundersoft, but :

  1. probably within same order of magnitude
  2. specifically for VDF, the gap quality between generating and solving will be the similar
  3. There is a LOT of room for improvement in this library

poanetwork also has this discussion: https://github.com/poanetwork/vdf/issues/13

MPIR may be a better choice over GMP & Pari

0xmountaintop avatar Aug 02 '20 08:08 0xmountaintop