Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Witz template cryptic error messages
Re: Witz template cryptic error messages [message #42945 is a reply to message #42944] Tue, 15 April 2014 13:58 Go to previous messageGo to previous message
mingodad is currently offline  mingodad
Messages: 53
Registered: February 2008
Location: Spain
Member
I did a microbenchmark with ESC, lua, luajit, SquiLu:
fact(x)
{
  if (x <= 1) {
    return 1;
  }
  return x * fact (x-1);
}

main() {
    i=0;
    x = 0;
    while (i < 100000) {
		x = fact (12);
		i+= 1;
    }
    Print(to_string(x) + "\n");	
}

$ time ./EscApp
479001600

real 0m4.314s
user 0m4.304s
sys 0m0.000s

$ time squilu fact2.nut
479001600

real 0m0.425s
user 0m0.232s
sys 0m0.008s

$ time luajit fact2.lua
479001600

real 0m0.079s
user 0m0.016s
sys 0m0.000s

$ time lua-5.1.5 fact2.lua
479001600

real 0m0.243s
user 0m0.160s
sys 0m0.000s

[Updated on: Tue, 15 April 2014 13:59]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Skylark functions/links
Next Topic: [BUG] GLDraw on multiple window on the same time doesn't work
Goto Forum:
  


Current Time: Sun Apr 28 11:53:05 CEST 2024

Total time taken to generate the page: 0.90759 seconds