Advertisement

Scripting language performance

Started by November 26, 2011 04:55 PM
4 comments, last by SimonForsman 13 years ago
-closed-
Uh, time it? You didn't even mention what scripting language, what runtime, what host language, what platform, or what code you're running. How on earth are we supposed to tell you how your code runs.
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.
Advertisement
-closed-
I have no idea what you are looking for. Are you trying to compare your language with other scripting languages?

It takes 5ms to do what? Call three functions in a script with a "class-struct"? If you want to benchmark your script, give it something meaty to do, an actual operation you expect it to perform.

Our Script needs 5ms to execute.


Execute what? It's like me telling you that I like stuff. What stuff? Stuff. You're being incredibly vague and unclear. We're not psychics. Execution times depend on everything Promit mentioned, in addition to algorithms, software patterns and design used, the host machine's specs, etc.
[size=2][ I was ninja'd 71 times before I stopped counting a long time ago ] [ f.k.a. MikeTacular ] [ My Blog ] [ SWFer: Gaplessly looped MP3s in your Flash games ]

Moin,

we implemented a script-processor by our own and now want to know between what
timespans a script with eg a class-struct and 3 calls should process?


It really depends on what those 3 calls are, if it is just 3 calls to empty functions it shouldn't require more than a few thousand operations which effectivly means that a modern CPU shoud pull it off in less time than you can reasonably measure, (50?s, 0.05ms or less)

Ofcourse this depends entierly on how you've implemented things, (If you are doing straight code parsing at runtime (rather than for example compiling to bytecode) things like the length of your variable and function names will have a fairly large impact on performance)
[size="1"]I don't suffer from insanity, I'm enjoying every minute of it.
The voices in my head may not be real, but they have some good ideas!

This topic is closed to new replies.

Advertisement