[openssl] master update

kaishen.yy at antfin.com kaishen.yy at antfin.com
Sat Apr 18 03:50:06 UTC 2020


The branch master has been updated
       via  031c9bd3f3e9a02fa126c7dbc47f3d934678a195 (commit)
      from  ad16671d49208ea8dcc79613e14fe6148daf959b (commit)


- Log -----------------------------------------------------------------
commit 031c9bd3f3e9a02fa126c7dbc47f3d934678a195
Author: 张盛豪 <zhangshenghao1995 at 163.com>
Date:   Thu Apr 16 22:34:24 2020 +0800

    apps/speed: fix invalid final report when run SM2 benchmarks in parallel
    
    Fixed #11523
    CLA: trivial
    
    Signed-off-by: 张盛豪 <zhangshenghao1995 at 163.com>
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    Reviewed-by: Paul Yang <kaishen.yy at antfin.com>
    (Merged from https://github.com/openssl/openssl/pull/11557)

-----------------------------------------------------------------------

Summary of changes:
 apps/speed.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/apps/speed.c b/apps/speed.c
index 9d4ab2c330..c063520df9 100644
--- a/apps/speed.c
+++ b/apps/speed.c
@@ -3467,7 +3467,7 @@ int speed_main(int argc, char **argv)
                 d = Time_F(STOP);
 
                 BIO_printf(bio_err,
-                           mr ? "+R8:%ld:%u:%s:%.2f\n" :
+                           mr ? "+R10:%ld:%u:%s:%.2f\n" :
                            "%ld %u bits %s signs in %.2fs \n",
                            count, sm2_curves[testnum].bits,
                            sm2_curves[testnum].name, d);
@@ -3496,7 +3496,7 @@ int speed_main(int argc, char **argv)
                 count = run_benchmark(async_jobs, SM2_verify_loop, loopargs);
                 d = Time_F(STOP);
                 BIO_printf(bio_err,
-                           mr ? "+R9:%ld:%u:%s:%.2f\n"
+                           mr ? "+R11:%ld:%u:%s:%.2f\n"
                            : "%ld %u bits %s verify in %.2fs\n",
                            count, sm2_curves[testnum].bits,
                            sm2_curves[testnum].name, d);
@@ -3678,7 +3678,7 @@ int speed_main(int argc, char **argv)
         }
 
         if (mr)
-            printf("+F6:%u:%u:%s:%f:%f\n",
+            printf("+F7:%u:%u:%s:%f:%f\n",
                    k, sm2_curves[k].bits, sm2_curves[k].name,
                    sm2_results[k][0], sm2_results[k][1]);
         else
@@ -3974,6 +3974,7 @@ static int do_multi(int multi, int size_num)
                 p = buf + 4;
                 k = atoi(sstrsep(&p, sep));
                 sstrsep(&p, sep);
+                sstrsep(&p, sep);
 
                 d = atof(sstrsep(&p, sep));
                 sm2_results[k][0] += d;


More information about the openssl-commits mailing list