Performance VS Rmmv conditional, Conditional+Else or Condition Javascript.

Hi guys.
I have question for Rmmv team Dev.
What is more performance if i need use a common event, with Multi conditional.


I speak in relation to the execution time in MS

1: use the rmmv core conditional With Else imbrication like thats ???

Spoiler
◆Si:ID PictureCallCommon = 28
  ◆Commentaire:menu item
  ◆
:Autre
  ◆Si:ID PictureCallCommon = 31
    ◆Commentaire:menu action
    ◆
  :Autre
    ◆Si:ID PictureCallCommon = 34
      ◆Commentaire:Satus menu
      ◆
    :Autre
      ◆Si:ID PictureCallCommon = 37
        ◆Commentaire:Quest Progesstion
        ◆
      :Autre
        ◆
      :Fin
      ◆
    :Fin
    ◆
  :Fin
  ◆
:Fin

or


2: use the rmmv core conditional Without else but (ExitCommonEvent) like thats ???

Spoiler
◆Si:ID PictureCallCommon = 28
  ◆Commentaire:menu item
  ◆Sortir du Traitement de l'Év.
  ◆
:Fin
◆Si:ID PictureCallCommon = 31
  ◆Commentaire:menu action
  ◆Sortir du Traitement de l'Év.
  ◆
:Fin
◆Si:ID PictureCallCommon = 34
  ◆Commentaire:menu status
  ◆Sortir du Traitement de l'Év.
  ◆
:Fin
◆Si:ID PictureCallCommon = 37
  ◆Commentaire:menu quest
  ◆Sortir du Traitement de l'Év.
  ◆
:Fin

or


3: use the Boxscript implementation conditional like thats ???

Spoiler
if (variable==??) {
}else if (variable==??) {
}else if (variable==??) {
}else if (variable==??) {
}else if (variable==??) {
}





What is more fast with the rmmv core execution (MS latency)


Tanks i lot
It really won't make a difference, I'd bet, but you can always try to run tests to see which one is faster. Just put the commands in a loop, and use the "console.time('label')" and "console.timeEnd('label')" commands before and after the loop respectively.
It really won't make a difference, I'd bet, but you can always try to run tests to see which one is faster. Just put the commands in a loop, and use the "console.time('label')" and "console.timeEnd('label')" commands before and after the loop respectively.

ok tanks for this 


console.time('label')" and "console.timeEnd('label')"


i will make some test

Original thread: https://forums.rpgmakerweb.com/threads/performance-vs-rmmv-conditional-conditional-else-or-condition-javascript.71996/