This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28379D: Why is time execution of DSS from JAVA longer than JavaScript?

Part Number: TMS320F28379D


Tool/software:

Hi,

I use DSS for a program load into RAM and run it.
I observe significant difference in execution time:

Java          1:23
JavaScript 0:40.

I expected the oposite results. JavaScript also uses java JRE, but through Rhino interpreter.
Why running Java class that access DSS is longer?

Regards,

Piotr Romaniuk

  • Hello Piotr,

    We were not aware of this discrepancy. We never really benchmarked DSS performance from a Java application. Checking with engineering, they also are a bit surprised but don't have an answer why.

    ki

  • Hello Ki,

    Does the architecture of these two options look like this:

    1) DSS[JAVA-API]  <-> Rhino[JavaScript interpreter] <-> my dss script

    2) DSS[JAVA-API] <-> my dss class ?

    These two versions use java virtual machine, right? (for executing Rhino and my-class correspondingly)?

    Regards,

    Piotr Romaniuk

  • Sorry for the delayed response. I was away on vacation and returned recently.

    1) DSS[JAVA-API]  <-> Rhino[JavaScript interpreter] <-> my dss script

    2) DSS[JAVA-API] <-> my dss class ?

    yes this is my understanding as well.

    Thanks

    ki