From acc6fbcd87703c4676503b857f5cae04a189f2f4 Mon Sep 17 00:00:00 2001 From: yeom Date: Sat, 31 Jul 2010 23:40:05 +0000 Subject: [PATCH] *** empty log message *** --- .../oooJava/crypt/JGFCryptBench.java | 32 +++++++++++-------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/Robust/src/Benchmarks/oooJava/crypt/JGFCryptBench.java b/Robust/src/Benchmarks/oooJava/crypt/JGFCryptBench.java index bff8a236..17273d6b 100644 --- a/Robust/src/Benchmarks/oooJava/crypt/JGFCryptBench.java +++ b/Robust/src/Benchmarks/oooJava/crypt/JGFCryptBench.java @@ -278,7 +278,7 @@ public class JGFCryptBench { datasizes = new int[3]; datasizes[0] = 3000000; datasizes[1] = 20000000; - datasizes[2] = 50000000; + datasizes[2] = 1000000000; } public void JGFsetsize(int size, int nWorker) { @@ -292,6 +292,7 @@ public class JGFCryptBench { } public void JGFkernel(){ + long startT=System.currentTimeMillis(); byte [] crypt1 = new byte [array_rows]; byte [] plain2 = new byte [array_rows]; @@ -350,19 +351,22 @@ public class JGFCryptBench { } } - - boolean error = false; - for (int i = 0; i < array_rows; i++){ - error = (plain1 [i] != plain2 [i]); - if (error){ - System.out.println("Validation failed"); - System.out.println("Original Byte " + i + " = " + plain1[i]); - System.out.println("Encrypted Byte " + i + " = " + crypt1[i]); - System.out.println("Decrypted Byte " + i + " = " + plain2[i]); - return; - } - } - System.out.println("Validation Success"); + int p=plain2[0]; + long endT=System.currentTimeMillis(); + System.out.println(p+"runningtime="+(endT-startT)); + +// boolean error = false; +// for (int i = 0; i < array_rows; i++){ +// error = (plain1 [i] != plain2 [i]); +// if (error){ +// System.out.println("Validation failed"); +// System.out.println("Original Byte " + i + " = " + plain1[i]); +// System.out.println("Encrypted Byte " + i + " = " + crypt1[i]); +// System.out.println("Decrypted Byte " + i + " = " + plain2[i]); +// return; +// } +// } +// System.out.println("Validation Success"); } public void JGFrun(int size, int nWorker) { -- 2.34.1