Performence comparison(ts runtime vs Java runtime) #20
Closed
backsapce
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Ah, very nice comparison. It's always good to have a prove for a valid runtime. I wonder about the ratio Java vs. TypeScript. My speed comparisons show a different picture. Though I have not tested Java, but C++ instead. But maybe we have one or more hot paths here that run faster in Java for whatever reason. A max lookahead of 73 is a strong indicator that something needs optimization. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i ported profile simulator from java runtime yesterday(not ready for pr now ),and make very shallow test,
i post my result here.the test case is parsing from file which include a small private sql dataset have ~100k line of sqls.
summary about the result
so it is work to replace java runtime. thanks @mike-lischke
i will find some opensource grammar and dataset to reproduce results until I have time.
js(node-18,mocha --require ts-node/register)
java
Beta Was this translation helpful? Give feedback.
All reactions