A New Way to Asyncify (JSPI) is Entering Chrome Origin Trial

42 views
Skip to first unread message

Brendan Dahl

unread,
Mar 15, 2024, 5:15:58 PMMar 15
to emscripten-discuss

Александр Гурьянов

unread,
Apr 2, 2024, 12:52:12 PMApr 2
to emscripte...@googlegroups.com
Hi, great to know that JSPI is moving forward, I tested it on couple of my projects.

1. Dune 2

compiles: ✅ (yes)
regular build: 428Kb
jspi build: 336 Kb -22%
works in chrome: ✅ (yes)
performance: same (old version also was blazing fast)

2. js-dos dosbox

compiles: ✅ (yes)
regular build: 1.4Mb
jspi build: 1.4 Mb
works in chrome: ❌ (no), freezes tab on start

3. js-dos dosbox-x (with exceptions!)

compiles: ✅ (yes)
regular build: 6.3Mb
jspi build: 5.9 Mb -7%
works in chrome: ❌ (no), freezes tab on start

2/3 how-to reproduce:

You can find in jspi version of js-dos here: https://v8.js-dos.com/tmp/jspi.zip.
1. Extract it
2. Change origin meta tag in test/dhry2.html and test/test.html
3. Serve contents of dist folder and open test/dhry2.html or test/test.html in chrome

dhry2.html - is a benchmark, it will print performance estimation if works
test.html - is a js-dos testsuite, all tests should pass (press "Start Tests" button to start).

Both pages stuck at the beginning, regular version works just fine.

--
Best regards, Alex





сб, 16 мар. 2024 г. в 00:16, 'Brendan Dahl' via emscripten-discuss <emscripte...@googlegroups.com>:
--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/3e6cfe84-11db-4235-b548-edee7c68cf40n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages