Considering they are both using the same Cortex A15 and they were released at approximately the same time, it's unlikely to be different.
An easy way to compare them is to run a basic benchmark (i.e. openssl11 speed -elapsed -evt aes-256-gcm) and compare the results.
RT-AX58U
crkpot@ASUS-10TB:/tmp/home/root# openssl11 speed -elapsed -evp aes-256-gcm
You have chosen to measure elapsed time instead of user CPU time.
Doing aes-256-gcm for 3s on 16 size blocks: 3266454 aes-256-gcm's in 3.00s
Doing aes-256-gcm for 3s on 64 size blocks: 937591 aes-256-gcm's in 3.01s
Doing aes-256-gcm for 3s on 256 size blocks: 244802 aes-256-gcm's in 3.00s
Doing aes-256-gcm for 3s on 1024 size blocks: 64800 aes-256-gcm's in 3.00s
Doing aes-256-gcm for 3s on 8192 size blocks: 8224 aes-256-gcm's in 3.00s
Doing aes-256-gcm for 3s on 16384 size blocks: 4108 aes-256-gcm's in 3.00s
OpenSSL 1.1.1g 21 Apr 2020
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
aes-256-gcm 17329.86k 20391.64k 20773.59k 22303.06k 22372.35k 22407.85k