Hi, I just ran this simple code with the Unicon and Icon systems on a Sun Solaris 9 machine:

# Timing test: Unicon vs. Icon
procedure main()
  local L, L2, x
  L := []
  every 1 to 100000 do put(L, ?0)
  L2 := []
  every x := !L do put(L2, x^2)
end


The results of the "time" command were surprising:


Icon:

real    0m0.304s
user    0m0.280s
sys     0m0.020s

Unicon:

real    0m0.606s
user    0m0.560s
sys     0m0.040s


So Icon appears to be twice as fast as Unicon!


The reason I did this little experiment is that I have a large program, in two
almost equivalent versions, one Icon and one Unicon, and I discovered that the
Icon version ran 2-3 times faster than the Unicon version.


Rather discouraging...


Kostas



------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Unicon-group mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to