Skip to content

Commit 816ff86

Browse files
committed
Add polyvecl_pointwise_acc_montgomery to component benchmarks
Signed-off-by: Matthias J. Kannwischer <[email protected]>
1 parent c2e3863 commit 816ff86

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/bench_components_mldsa.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <string.h>
1111
#include "../mldsa/ntt.h"
1212
#include "../mldsa/poly.h"
13+
#include "../mldsa/polyvec.h"
1314
#include "../mldsa/randombytes.h"
1415
#include "hal.h"
1516

@@ -44,15 +45,20 @@ static int cmp_uint64_t(const void *a, const void *b)
4445

4546
static int bench(void)
4647
{
47-
int32_t data0[256];
48+
MLD_ALIGN int32_t data0[256];
49+
MLD_ALIGN int32_t data1[MLDSA_K * 256];
50+
MLD_ALIGN int32_t data2[MLDSA_K * 256];
4851
uint64_t cyc[NTESTS];
4952
unsigned i, j;
5053
uint64_t t0, t1;
5154

52-
/* ntt */
5355
BENCH("poly_ntt", poly_ntt((poly *)data0))
56+
5457
BENCH("poly_invntt_tomont", poly_invntt_tomont((poly *)data0))
5558

59+
BENCH("polyvecl_pointwise_acc_montgomery",
60+
polyvecl_pointwise_acc_montgomery(
61+
(poly *)data0, (const polyvecl *)data1, (const polyvecl *)data2))
5662
return 0;
5763
}
5864

0 commit comments

Comments
 (0)