[PATCH] wireguard-tools: allow compiling with MIPS16 instructions

Rui Salvaterra rsalvaterra at gmail.com
Fri Jul 24 06:17:32 EDT 2020


Hi again, Jason,

On Fri, 24 Jul 2020 at 10:12, Jason A. Donenfeld <Jason at zx2c4.com> wrote:
>
> This might be a typical use case for you, but some people are running
> scripts that generate lots of keys. There may be a good argument that
> if you're doing that kind of thing, a tiny MIPS router isn't the right
> hardware for your use case. But, before going down that route, I'd
> still be interested in knowing if it _actually_ makes any difference
> at all. Maybe it's negligible, for example.

Here are more objective numbers. I timed 1000 runs of wg genkey | wg
pubkey > /dev/null. Each timing was done four times for both MIPS16
and MIPS32 and the worst results were chosen.

MIPS32 results:
real    0m 10.06s
user    0m 8.12s
sys    0m 1.34s

MIPS16 results:
real    0m 11.96s
user    0m 10.14s
sys    0m 1.15s

I'd say the difference is, indeed, negligible.

Thanks,
Rui



More information about the openwrt-devel mailing list