6 Commits

Author SHA1 Message Date
Jacek Sieka
a1560b915e
Cleanups, bump stint/stew (#13)
* prefer stew/staticfor
* cleanup pragmas
* unroll a few more things

These simplifications also bring a nice little 10-15% perf boost:

```
arnetheduck@praeceps:~/status/nimbus-eth1/vendor/nim-bncurve$
/home/arnetheduck/status/nimbus-eth1/vendor/nim-bncurve/benchmarks/bench
G1 Jacobian add: 578 ns
G1 toAffine: 3067 ns
G2 Jacobian add: 3141 ns
G2 toAffine: 3772 ns
G1 Jacobian mul: 191442 ns
G2 Jacobian mul: 819047 ns
Pairing: 2111668 ns
arnetheduck@praeceps:~/status/nimbus-eth1/vendor/nim-bncurve$
/home/arnetheduck/status/nimbus-eth1/vendor/nim-bncurve/benchmarks/bench
G1 Jacobian add: 497 ns
G1 toAffine: 2774 ns
G2 Jacobian add: 2701 ns
G2 toAffine: 3461 ns
G1 Jacobian mul: 147267 ns
G2 Jacobian mul: 633992 ns
Pairing: 1816686 ns
```
2024-12-11 12:12:35 +01:00
Jacek Sieka
5e64912cc3
Port tests to unittest2, add simple benchmark (#12) 2024-12-10 14:16:47 +01:00
cheatfate
ea38d7b5b8 Move testing to release mode only.
Reduce number of test vectors.
2018-09-28 03:43:58 +03:00
cheatfate
06071e5ad8 Reduce number of test vector tests to pass CI timeout issue. 2018-09-28 03:27:34 +03:00
cheatfate
833574837f Reduce number of test vectors for debug builds.
Force full recompilation of sources.
2018-09-27 14:04:40 +03:00
cheatfate
4b8f6db181 Initial commit. 2018-09-27 13:35:59 +03:00