diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-06-20 12:07:03 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-06-21 16:39:09 +0200 |
commit | 718f3a119b026eafffa26feda35a113926e5437c (patch) | |
tree | e019558d81df2112511d2d3e6cfe792a680f6ccc /src/benchmark.c | |
parent | 3f7a62db6096695251e5507c034e8024625a776a (diff) | |
download | gnutls-718f3a119b026eafffa26feda35a113926e5437c.tar.gz |
gnutls-cli: benchmark the memcpy performance to compare with ciphers
Also ensure that we use different memory areas for each operation
to avoid measuring better performance due to caching.
Diffstat (limited to 'src/benchmark.c')
-rw-r--r-- | src/benchmark.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/benchmark.c b/src/benchmark.c index f8a9562529..19bf68cd32 100644 --- a/src/benchmark.c +++ b/src/benchmark.c @@ -28,7 +28,7 @@ #define BSECS 5 -int benchmark_must_finish = 0; +volatile int benchmark_must_finish = 0; #if defined(_WIN32) #include <windows.h> |