Re: openssl speed -mr format output
Jon Ericson <[email protected]>
| Newsgroups | gmane.comp.encryption.openssl.user |
|---|---|
| Message-ID | <CAK9c5Va7j=iyBuNiK9+e_8RWZZST+ohypiyP81DF7+hj2_HwcQ@mail.gmail.com> |
On Wed, Feb 5, 2025 at 3:10 PM 'g.fab' via openssl-users < [email protected]> wrote: > I am using the following commands with the following outputs: > > $ openssl speed -mr *ecdsap256* > > +DTP:256:sign:ecdsa:10 > > +R5:518351:256:9.90 > > +DTP:256:verify:ecdsa:10 > > +R6:170670:256:9.99 > > *+F4:3:256:52358.686869:17084.084084* > > $ openssl speed -mr *rsa2048* > > +DTP:2048:private:rsa:10 > > +R1:41622:2048:10.00 > > +DTP:2048:public:rsa:10 > > +R2:620842:2048:10.00 > > *+F2:2:2048:4162.200000:62084.200000* > > > $ openssl speed -mr *ed25519* > > +DTP:253:sign:Ed25519:10 > > +R8:276631:253:Ed25519:10.00 > > +DTP:253:verify:Ed25519:10 > > +R9:100024:253:Ed25519:10.00 > > *+F6:0:253:Ed25519:27663.100000:10002.400000* > > > Why are the highlighted lines showing different flags (*F6, F2, F4*)? > does this mean that there are differences between the three speed > operations? > The manual <https://docs.openssl.org/3.3/man1/openssl-speed/#options> explains the -mr option as: "Produce the summary in a mechanical, machine-readable, format." What's not clear is what reads that format. It turns out the format is designed to be read by the do_mulit function <https://github.com/openssl/openssl/blob/78d252889b7d126b9baf5075db6990658c87f85b/apps/speed.c#L4840> that implements the *-multi* option. That function reads the output of multiple parallel processes and uses the "+F" prefix to determine which algorithm was tested. So +F4 is for ecdsa results <https://github.com/openssl/openssl/blob/78d252889b7d126b9baf5075db6990658c87f85b/apps/speed.c#L4941>, +F2 is for rsa results <https://github.com/openssl/openssl/blob/78d252889b7d126b9baf5075db6990658c87f85b/apps/speed.c#L4911> and +F6 is for eddsa results <https://github.com/openssl/openssl/blob/78d252889b7d126b9baf5075db6990658c87f85b/apps/speed.c#L4961>. Other than that, I don't think the actual F numbers have any significance. -- You received this message because you are subscribed to the Google Groups "openssl-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to openssl-users+unsubscribe-MCmKBN63+Bmbup2nOX2J7Q@public.gmane.org To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-users/CAK9c5Va7j%3DiyBuNiK9%2Be_8RWZZST%2BohypiyP81DF7%2Bhj2_HwcQ%40mail.gmail.com.