summaryrefslogtreecommitdiff
path: root/test.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-08-01 03:07:33 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-08-01 03:07:33 +0000
commit31db05a19268a9c9c2885e762d3ddb9da7ea0105 (patch)
tree4920151011818ab183ee768e0fe87a89f90caab4 /test.cpp
parentb973517f3305d7e518fea35b5c3175e544ddbe77 (diff)
downloadcryptopp-31db05a19268a9c9c2885e762d3ddb9da7ea0105.tar.gz
add b2 command
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@124 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'test.cpp')
-rw-r--r--test.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/test.cpp b/test.cpp
index a21d351..77546d2 100644
--- a/test.cpp
+++ b/test.cpp
@@ -265,12 +265,9 @@ int CRYPTOPP_CDECL main(int argc, char *argv[])
else if (command == "v")
return !Validate(argc>2 ? atoi(argv[2]) : 0, argv[1][1] == 'v', argc>3 ? argv[3] : NULL);
else if (command == "b")
- {
- if (argc<3)
- BenchmarkAll();
- else
- BenchmarkAll((float)atof(argv[2]));
- }
+ BenchmarkAll(argc<3 ? 1 : atof(argv[2]));
+ else if (command == "b2")
+ BenchmarkAll2(argc<3 ? 1 : atof(argv[2]));
else if (command == "z")
GzipFile(argv[3], argv[4], argv[2][0]-'0');
else if (command == "u")