crc/benchmark: scaling trials more appropriately
/*
- * Copyright (c) 2007 - 2015 Joseph Gaeddert
+ * Copyright (c) 2007 - 2021 Joseph Gaeddert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -42,7 +42,8 @@ void crc_bench(struct rusage *_start,
{
// normalize number of iterations
if (_crc != LIQUID_CRC_CHECKSUM)
- *_num_iterations /= 8;
+ *_num_iterations /= 100;
+ if (*_num_iterations < 1) *_num_iterations = 1;
unsigned long int i;
