Click here to Skip to main content
15,881,172 members
Articles / Programming Languages / Lua

ObjectScript: A new programming language

Rate me:
Please Sign up or sign in to vote.
4.24/5 (6 votes)
9 Oct 2012MIT9 min read 66.6K   107   21  
The ObjectScript is a new programing language that mixes benefits of JavaScript, Lua, and PHP. The ObjectScript has syntax from JavaScript, multiple results from Lua, OOP from PHP and much more.
{-1:"..\\Release\\profile_benchmark.exe","..\\os\\test_fannkuch.os","9"}
8629
Pfannkuchen(9) = 30
time = 5.05268
OS script full time: 5.057212 secs
            gc time: 0.000193 secs (0.00%)

=== SET_LOCAL_VAR_BY_BIN_OPERATOR_LOCAL_AND_NUMBER, executed count: 8775837
sum time: 0.529332 secs (10.47%), avg time of 100000 times: 0.006032

=== PUSH_LOCAL_VAR, executed count: 11364021
sum time: 0.412040 secs (8.15%), avg time of 100000 times: 0.003626

=== SET_LOCAL_VAR, executed count: 9641559
sum time: 0.347985 secs (6.88%), avg time of 100000 times: 0.003609

=== BIN_OPERATOR_BY_LOCAL_AND_NUMBER, executed count: 6137238
sum time: 0.346516 secs (6.85%), avg time of 100000 times: 0.005646

=== SET_PROPERTY_BY_LOCALS_AUTO_CREATE, executed count: 6376814
sum time: 0.334967 secs (6.62%), avg time of 100000 times: 0.005253

=== GET_PROPERTY_BY_LOCALS, executed count: 6438708
sum time: 0.293309 secs (5.80%), avg time of 100000 times: 0.004555

=== JUMP_1, executed count: 7548329
sum time: 0.273805 secs (5.41%), avg time of 100000 times: 0.003627

=== IF_NOT_JUMP_1, executed count: 6659026
sum time: 0.240035 secs (4.75%), avg time of 100000 times: 0.003605

=== GET_SET_PROPERTY_BY_LOCALS_AUTO_CREATE, executed count: 2580480
sum time: 0.228235 secs (4.51%), avg time of 100000 times: 0.008845

=== BIN_OPERATOR_BY_LOCALS, executed count: 3967229
sum time: 0.187821 secs (3.71%), avg time of 100000 times: 0.004734

=== ALL OPCODES, executed count: 84027573
sum time: 3.856992 secs (76.27%), avg time of 100000 times: 0.004590

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions