Subject: Damn slow RSA_generate_key
To: None <port-sparc@netbsd.org>
From: Bernd Walter <ticso@cicely8.cicely.de>
List: port-sparc
Date: 01/30/2003 14:34:45
[101]cicely21# cat blah.c 
#include <openssl/rsa.h>

int
main() {
        RSA *rsa;

        rsa = RSA_generate_key(1024 , 65537, NULL, NULL);
        return (0);
}
[102]cicely21# gcc -o blah blah.c -lcrypto
1.534u 0.900s 0:03.73 65.1%     0+0k 5+9io 33pf+0w
[103]cicely21# ./blah 
69.732u 0.129s 1:11.98 97.0%    0+0k 1+1io 0pf+0w
[104]cicely21# dmesg
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.6 (CICELY21) #1: Tue Dec 24 15:53:28 CET 2002
    ticso@cicely21.cicely.de:/usr/src/sys/arch/sparc/compile/CICELY21
total memory = 127 MB
avail memory = 115 MB
using 896 buffers containing 6616 KB of memory
bootpath: /iommu@f,e0000000/sbus@f,e0001000/dma@2,81000/esp@2,80000/sd@3,0
mainbus0 (root): SUNW,SPARCstation-10
cpu0 at mainbus0: TMS390Z50 v1 @ 40 MHz, on-chip FPU
cpu0: physical 20K instruction (64 b/l), 16K data (32 b/l): cache enabled
[...]

-- 
B.Walter              COSMO-Project         http://www.cosmo-project.de
ticso@cicely.de         Usergroup           info@cosmo-project.de