[hipl-commit] [trunk] Rev 4383: Remove disabled and non-compiling hashchain test code.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Wed, 21 Apr 2010 15:17:40 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 21/04/2010 at 15:17:40
Revision: 4383
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Remove disabled and non-compiling hashchain test code.

Modified:
  M  test/dh_performance.c

=== modified file 'test/dh_performance.c'
--- test/dh_performance.c       2010-04-15 22:49:30 +0000
+++ test/dh_performance.c       2010-04-21 12:16:58 +0000
@@ -715,37 +715,6 @@
     printf("%4.2f keys per sec, %4.2f keys per min\n\n",
            sw_bench_loops / bench_secs, sw_bench_loops / bench_secs * 60);
 
-#ifdef HASHCHAIN
-    printf( "-------------------------------\n"
-            "Hash chain performance test\n"
-            "-------------------------------\n\n");
-
-    printf("Creating %d hash chains of length %d\n", sw_bench_loops, 
sw_hash_chain_len);
-    hash_chain_t *current_chain;
-    dhp_start_benchmark(&bench_time);
-
-    for (i = 0; i < sw_bench_loops; i++) {
-        if (sw_file_output) {
-            hip_perf_start_benchmark(perf_set, PS_HC_CREATE);
-        }
-        current_chain = hchain_create(sw_hash_chain_len);
-        if (sw_file_output) {
-            hip_perf_stop_benchmark(perf_set, PS_HC_CREATE);
-            hip_perf_write_benchmark(perf_set, PS_HC_CREATE);
-        }
-        if (sw_print_keys) {
-            hchain_print(current_chain);
-        }
-    }
-    printf("\n");
-    bench_secs = dhp_stop_benchmark(&bench_time);
-    printf("Hash chain generation took %.3f sec (%.10f sec per hash chain)\n",
-           bench_secs, bench_secs / sw_bench_loops);
-    printf("%4.2f hash chains per sec, %4.2f hash chains per min\n",
-           sw_bench_loops / bench_secs, sw_bench_loops / bench_secs * 60 * 
1000);
-
-#endif
-
     printf( "-------------------------------\n"
             "Hash function (SHA-1) performance test\n"
             "-------------------------------\n\n");

Other related posts:

  • » [hipl-commit] [trunk] Rev 4383: Remove disabled and non-compiling hashchain test code. - Diego Biurrun