you mean old cryptonight ?
you cannot compare cryptonight classic and cryptonight heavy, the second is something like twice slower, on purpose, to annoy the ASIC. comparison must be made on same algo, same computer, same number of threads. on my ryzen 1600 stak and xmrig are at 250, jce is 252, so slightly faster but very little difference i admit. we're at hardware max both.
edit : i redid the test just for you:
getting 243.5h/s on cryptonight-heavy using Ryzen 1700X 3.84Gh/s
On my Ryzen 1600, stock, no overclock i get :
Cryptonight Variation: Cryptonight-Heavy
Starting Mining thread 0, affinity: CPU 0
Thread 0 successfully bound to CPU 0
Allocated shared Large Page at: 00000148e7200000
Allocated 4MB Cached Large Page Scratchpad Buffer for CPU 0 of NUMA node 0 at: 00000148e7400000
Starting Mining thread 1, affinity: CPU 2
Thread 1 successfully bound to CPU 2
Allocated 4MB Cached Large Page Scratchpad Buffer for CPU 2 of NUMA node 0 at: 00000148e7800000
Starting Mining thread 2, affinity: CPU 6
Thread 2 successfully bound to CPU 6
Allocated 4MB Cached Large Page Scratchpad Buffer for CPU 6 of NUMA node 0 at: 00000148e7c00000
Starting Mining thread 3, affinity: CPU 8
Thread 3 successfully bound to CPU 8
Allocated 4MB Cached Large Page Scratchpad Buffer for CPU 8 of NUMA node 0 at: 00000148e8000000
Devfee is 1.5%
20:12:36 | Connecting to mining pool pool.sumokoin.hashvault.pro:3333 ...
20:12:36 | Sumokoin (SUMO) Mining session starts!
During mining time, press:
h display hashrate for each mining thread.
r display full report.
q quit.
20:12:36 | Connected to pool. Now logging in...
20:12:36 | Successfuly logged as Sumoo4dRGo3cAZPajai8WbgfUZLatPKrqdsFHmfQ1vvrZrQEhSVPKMK3Jj3Qv16BgGQupDw6vEHh1jJAzYXkNScETFrNFUf354v
20:12:36 | Pool changes Difficulty to 10000.
20:12:43 | Hashrate Thread 0: 62.59 h/s
20:12:43 | Hashrate Thread 1: 62.59 h/s
20:12:43 | Hashrate Thread 2: 63.33 h/s
20:12:43 | Hashrate Thread 3: 63.31 h/s
20:12:43 | Total: 250.81 h/s
(note: the wallet is the CN-Heavy dev donation wallet, clear on purpose)
You cannot have worse perf on a OC Ryzen 1700X than my cheap stock 1600. There's a problem, maybe you run the 32-bits version?
Test on stack, exact same machine:
[2018-04-26 20:19:00] : Mining coin: sumokoin
[2018-04-26 20:19:00] : Starting 1x thread, affinity: 0.
[2018-04-26 20:19:00] : hwloc: memory pinned
[2018-04-26 20:19:00] : Starting 1x thread, affinity: 4.
[2018-04-26 20:19:00] : hwloc: memory pinned
[2018-04-26 20:19:00] : Starting 1x thread, affinity: 6.
[2018-04-26 20:19:00] : hwloc: memory pinned
[2018-04-26 20:19:00] : Starting 1x thread, affinity: 10.
[2018-04-26 20:19:00] : hwloc: memory pinned
[2018-04-26 20:19:00] : Fast-connecting to pool.sumokoin.hashvault.pro:3333 pool ...
[2018-04-26 20:19:00] : Pool pool.sumokoin.hashvault.pro:3333 connected. Logging in...
[2018-04-26 20:19:01] : Difficulty changed. Now: 10000.
[2018-04-26 20:19:01] : Pool logged in.
HASHRATE REPORT - CPU
| ID | 10s | 60s | 15m | ID | 10s | 60s | 15m |
| 0 | 62.3 | (na) | (na) | 1 | 62.3 | (na) | (na) |
| 2 | 62.1 | (na) | (na) | 3 | 62.1 | (na) | (na) |
Totals (CPU): 248.7 0.0 0.0 H/s
jce is +2h/s as expected. Really JCE is slightly (but barely) faster. Not 20% slower.