Skip to content

Commit

Permalink
add polyvec_compress and polyvec_decompress to bench
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias J. Kannwischer <[email protected]>
  • Loading branch information
mkannwischer committed Nov 14, 2024
1 parent 2083756 commit eb302cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/bench_components_mlkem.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "../mlkem/native/arith_native.h"
#include "fips202.h"
#include "keccakf1600.h"
#include "polyvec.h"

#define NWARMUP 50
#define NITERERATIONS 300
Expand Down Expand Up @@ -60,6 +61,11 @@ static int bench(void) {
rej_uniform((int16_t *)data0, MLKEM_N / 2, 0, (const uint8_t *)data1,
1 * SHAKE128_RATE));

BENCH("polyvec-compress",
polyvec_compress((uint8_t *)data0, (polyvec *)data1));
BENCH("polyvec-decompress",
polyvec_decompress((polyvec *)data0, (uint8_t *)data1));

#if defined(MLKEM_USE_NATIVE_AARCH64)
BENCH("ntt-clean", ntt_asm_clean((int16_t *)data0));
BENCH("intt-clean", intt_asm_clean((int16_t *)data0));
Expand Down

0 comments on commit eb302cf

Please sign in to comment.