Openssl implementation of threading + default imp

This commit is contained in:
Aris Adamantiadis
2010-09-01 14:07:45 +02:00
parent 50d8d75d89
commit 8c55294ea9
8 changed files with 135 additions and 41 deletions

View File

@@ -3,7 +3,12 @@
#include <pthread.h>
#include "torture.h"
#ifdef HAVE_LIBGCRYPT
#define NUM_LOOPS 1000
#else
/* openssl is much faster */
#define NUM_LOOPS 20000
#endif
#define NUM_THREADS 100
static void setup(){