Click here to Skip to main content
15,885,757 members
Articles / Programming Languages / Lua

Programming in ObjectScript 1.5

Rate me:
Please Sign up or sign in to vote.
5.00/5 (3 votes)
25 Mar 2013MIT22 min read 18.5K   125   4  
The ObjectScript is a new embedded programing language that mixes benefits of JavaScript, Lua, Ruby, Python and PHP. The ObjectScript has syntax from JavaScript, multiple results from Lua, sugar syntax from Ruby, magic methods from Python and much more.
{-1:"..\\Release\\profile_benchmark.exe","scripts\\test_fannkuch.os","9"}
8629
Pfannkuchen(9) = 30
time = 4.80323
OS script full time: 4.806635 secs
            gc time: 0.000157 secs (0.00%)

=== SET_LOCAL_VAR_BY_BIN_OPERATOR_LOCAL_AND_NUMBER, executed count: 8775837
sum time: 0.464807 secs (9.67%), avg time of 100000 times: 0.005296

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

=== SET_LOCAL_VAR_1, executed count: 9641559
sum time: 0.324172 secs (6.74%), avg time of 100000 times: 0.003362

=== SET_PROPERTY_BY_LOCALS_AUTO_CREATE, executed count: 6376814
sum time: 0.321689 secs (6.69%), avg time of 100000 times: 0.005045

=== BIN_OPERATOR_BY_LOCAL_AND_NUMBER, executed count: 6137238
sum time: 0.311836 secs (6.49%), avg time of 100000 times: 0.005081

=== GET_PROPERTY_BY_LOCALS, executed count: 6438708
sum time: 0.285652 secs (5.94%), avg time of 100000 times: 0.004436

=== JUMP_1, executed count: 7548329
sum time: 0.261107 secs (5.43%), avg time of 100000 times: 0.003459

=== IF_NOT_JUMP_1, executed count: 6659026
sum time: 0.223800 secs (4.66%), avg time of 100000 times: 0.003361

=== GET_SET_PROPERTY_BY_LOCALS_AUTO_CREATE, executed count: 2580480
sum time: 0.213698 secs (4.45%), avg time of 100000 times: 0.008281

=== BIN_OPERATOR_BY_LOCALS, executed count: 3967229
sum time: 0.186113 secs (3.87%), avg time of 100000 times: 0.004691

=== ALL OPCODES, executed count: 84027573
sum time: 3.615839 secs (75.23%), avg time of 100000 times: 0.004303

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