473,480 Members | 5,041 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Version 2.3.3 vs 2.4.2a Timings

These timing results with Fibbonacci, using and not using memoize might
be of interest.

Version 2.3.3 - Unwrapped is using interation in place of recursion
C:\Test>python tFib.py
Unwrapped, using fib: 7.52 usec/pass
Raw Fibonacci: 252.66 usec/pass
Fibonacci with old deco: 3.18 usec/pass

Version 2.4.2a
C:\Test>\Python24\python.exe tFib.py
Unwrapped, using fib: 4.92 usec/pass
Fibonacci, using @memoize: 2.89 usec/pass
Raw Fibonacci: 214.11 usec/pass
Fibonacci with old deco: 2.90 usec/pass

Conclusions:
2.4.2a provides a significant speedup for these cases.
The unwrapped approach is much better than recursive fibonacci, but not
as good as with memoise.

This is based on Dan Bishop's code.

Colin W.

Jul 18 '05 #1
0 804

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
2724
by: Manlio Perillo | last post by:
Hi. I'm a new user of Python but I have noted a little problem. Python is a very good language but it is evolving, in particular its library is evolving. This can be a problem when, ad example,...
8
1341
by: Madhusudan Singh | last post by:
Hi I am using time.clock() to get the current time of the processor in seconds. For my application, I need really high resolution but currently seem to be limited to 0.01 second. Is there a way...
3
3052
by: Shadow Lynx | last post by:
At the bottom of the default Error page that appears when Unhandled Exceptions occur, what exactly is the difference between the "Microsoft ..Net Framework Version" and the "ASP.NET Version"? I...
0
1895
by: ev951 | last post by:
I am not that familiar with XML or XSL and I am trying to sort application version number strings in an XML file that my team uses for application installations on our Linux servers. I have tried...
1
1410
by: fawzia | last post by:
I want to read from file like this an find the winner for 500m, 1000m, and so on But how can I compare the timings column by column( or extract the timing to compare) Or do I have to declare...
5
1544
by: smahaboob | last post by:
Actually iam preparing a windows application. My winform duty is storing finding the start time and stop timings of the applications. when ever i opened the word my winform should catch this one and...
0
1209
by: likong | last post by:
Hi, I am looking for a tool/product (commerical or shareware) to correlate classic ASP pages (not ASP.NET) with timings of ADO calls made from each ASP page. The information I am looking for...
3
3058
by: renuks | last post by:
the command for subtacting 2 different railway timings e.g: start time :15:30 end time : 17:30 to get the answer as 1:00 hr
1
1012
by: MRAB | last post by:
I'm looking at the implementation of regular expressions in Python and wrote a script to test my changes. This is the script: import re import time base = "abc" final = "d"
0
7040
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7041
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
6908
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5331
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4772
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4478
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2994
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
561
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
178
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.