@@ -775,14 +775,14 @@ static int test_ahash_cycles_digest(struct ahash_request *req, int blen,
775775 int ret , i ;
776776
777777 /* Warm-up run. */
778- for (i = 0 ; i < 16 ; i ++ ) {
778+ for (i = 0 ; i < 4 ; i ++ ) {
779779 ret = do_one_ahash_op (req , crypto_ahash_digest (req ));
780780 if (ret )
781781 goto out ;
782782 }
783783
784784 /* The real thing. */
785- for (i = 0 ; i < 1024 ; i ++ ) {
785+ for (i = 0 ; i < 8 ; i ++ ) {
786786 cycles_t start , end ;
787787
788788 start = get_cycles ();
@@ -801,7 +801,7 @@ static int test_ahash_cycles_digest(struct ahash_request *req, int blen,
801801 return ret ;
802802
803803 pr_cont ("%6lu cycles/operation, %4lu cycles/byte\n" ,
804- cycles / 1024 , cycles / (1024 * blen ));
804+ cycles / 8 , cycles / (8 * blen ));
805805
806806 return 0 ;
807807}
@@ -816,7 +816,7 @@ static int test_ahash_cycles(struct ahash_request *req, int blen,
816816 return test_ahash_cycles_digest (req , blen , out );
817817
818818 /* Warm-up run. */
819- for (i = 0 ; i < 16 ; i ++ ) {
819+ for (i = 0 ; i < 4 ; i ++ ) {
820820 ret = do_one_ahash_op (req , crypto_ahash_init (req ));
821821 if (ret )
822822 goto out ;
@@ -831,7 +831,7 @@ static int test_ahash_cycles(struct ahash_request *req, int blen,
831831 }
832832
833833 /* The real thing. */
834- for (i = 0 ; i < 1024 ; i ++ ) {
834+ for (i = 0 ; i < 8 ; i ++ ) {
835835 cycles_t start , end ;
836836
837837 start = get_cycles ();
@@ -858,7 +858,7 @@ static int test_ahash_cycles(struct ahash_request *req, int blen,
858858 return ret ;
859859
860860 pr_cont ("%6lu cycles/operation, %4lu cycles/byte\n" ,
861- cycles / 1024 , cycles / (1024 * blen ));
861+ cycles / 8 , cycles / (8 * blen ));
862862
863863 return 0 ;
864864}
0 commit comments