X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/b04fe171f0375ecd5d8a24747ca1dff85720a0ca..6b200bc335dc93c5516ccb52f14bd896d8c7fad7:/SecurityTests/clxutils/kcTime/kcTime.cpp diff --git a/SecurityTests/clxutils/kcTime/kcTime.cpp b/SecurityTests/clxutils/kcTime/kcTime.cpp deleted file mode 100644 index 2a9bcf92..00000000 --- a/SecurityTests/clxutils/kcTime/kcTime.cpp +++ /dev/null @@ -1,504 +0,0 @@ -/* - * kcTime.cpp - measure performance of keychain ops - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/* Hard coded test params */ - -/* - * Number of keychains to create/search - */ -#define KT_NUM_KEYCHAINS 10 - -/* - * Certs and P12 blobs to add to keychain - */ -#define KT_CERT0_NAME "amazon_v3.100.cer" -#define KT_CERT1_NAME "SecureServer.509.cer" -#define KT_P12_PFX "test1.p12" -#define KT_P12_PASSWORD "password" - -/* - * Base name of keychains we create. We delete them before we start. - * They're in the user's home directory to faciliate testing NFS vs. local. - */ -#define KT_KC_NAME "kcTime_test_" - -static void usage(char **argv) -{ - printf("Usage: %s [option ...]\n", argv[0]); - printf("Options:\n"); - printf(" v verbose\n"); - printf(" h help\n"); - exit(1); -} - -static void printAllTimes( - bool verbose, - double *delta, - unsigned numSamples) -{ - if(!verbose) { - return; - } - for(unsigned dex=0; dex