-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running a AVR Emulator (AVR8js) (benchmark ?!?!) #511
Comments
Enviroment: J2V8 (attached code / avr8js_demo_vanilla/run-v8.js):Program running... NodeJS: v13.12.0
Time: Blink finished in 1 ms graalvm
Program running... Running on: browserbundle.js:2522 Fetch finished loading: GET "http://localhost:3000/blink.hex". package javascript.j2v8;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import com.eclipsesource.v8.NodeJS;
import com.eclipsesource.v8.V8;
public class J2V8 {
public static void main(String[] args) throws IOException {
Path path = Paths.get("/media/ricardo/Dados/TEMP/testes-java/avr8js_demo_vanilla/run-v8.js");
NodeJS node = NodeJS.createNodeJS();
node.exec(path.toFile());
while (node.isRunning()) {
node.handleMessage();
}
}
} PS: J2V8 need remove async / await .. only.. |
Hi doing some experiments running a emulator (AVR8js) in javascript interpreters, I found some substantial differences in performance, mainly in reporting the performance of the browser (chrome), running natively in nodejs the difference is even greater...
I'll share the results here, more information is here:
wokwi/avr8js#49 (comment)
simple benckmark
https://github.com/ricardojlrufino/avr8js_demo_node/tree/vanilla
The text was updated successfully, but these errors were encountered: