Post Reply 
Public Beta Availiable - Win/Firmware
04-17-2021, 04:17 PM (This post was last modified: 04-17-2021 04:39 PM by Jean-Baptiste Boric.)
Post: #35
RE: Public Beta Availiable - Win/Firmware
(04-17-2021 01:25 PM)parisse Wrote:  I'm not against a wasm interpreter for those who are happy with a wasm solution, but I would not be happy for speed reasons at least and I'm probably not alone. I would certainly not spend time myself to port KhiCAS on the Prime with a slow wasm solution.

I've made some quick benchmarks with eigenmath on my workstation (I couldn't be bothered to make sense of giac's build system to spit out a wasi-compliant wasm build). For reference, wasmtime is an Apache 2.0-licensed JIT runtime and wasm3 is a MIT-licensed pure interpreter. Both could be embedded in the HP Prime calculator, although wasmtime might not be available for the HP Prime G1 CPU and also for platforms that forbid JIT compilation, like Apple's iOS.

Code:
+-------------------------------+----------------+--------------+------------+
|           Benchmark           | Native x64 (s) | wasmtime (s) | wasm3 (s)  |
+-------------------------------+----------------+--------------+------------+
| 100000!                       |       7.123614 |     8.770854 |  67.512887 |
| isprime(2^4253-1)             |       8.519775 |    10.803843 | 191.927025 |
| float(besselj(2^31-1,2^31-1)) |       4.100890 |    15.844560 |  21.771254 |
+-------------------------------+----------------+--------------+------------+

What do you think of these performance numbers?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Public Beta Availiable - Win/Firmware - Jean-Baptiste Boric - 04-17-2021 04:17 PM



User(s) browsing this thread: 1 Guest(s)