Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Time analysis

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Time analysis


Chronological Thread 
  • From: "Tillmann Weisser" <tweisser AT laas.fr>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Time analysis
  • Date: Mon, 02 Nov 2015 09:14:49 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=tweisser AT laas.fr; spf=Pass smtp.mailfrom=tweisser AT laas.fr; spf=Pass smtp.helo=postmaster AT laas.laas.fr
  • Ironport-phdr: 9a23:5hxxFR1iH6U849LpsmDT+DRfVm0co7zxezQtwd8ZsegSKvad9pjvdHbS+e9qxAeQG96LtrQe16GP4/iocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWC0oLti6vrq8WbSj4LrQT+SIs6FA+xowTVu5teqqpZAYF19CH0pGBVcf9d32JiKAHbtR/94sCt4MwrqHwI6Lpyv/JHBK79ZuEzSaFSJDUgKWE8osPx5jfZSg7arEcdVmETmxxOSzfI7QrhU427+n/mqed8wzKXJ+XyRLkvHzq4ufQ4ACT0gTsKYmZquFrcjdZ92fpW

Dear Coq-Club,

I want to do a time analysis of a function in my code. However, I don't
really know how to do this. Here is my problem:

Given 3 types A, B and C and converting functions g: A -> B and h: B -> C. I
want to analyse the function f:= h o g. In particular I'm interested in the
question which part of f (i.e. g or h) takes most of the time.

Let now a be of type A. I ran the commands

Time Eval vm_compute in (f a).
Time Eval vm_compute in (g a).
Let b:= Eval vm_compute in (g a).
Time Eval vm_compute in (h b).

However, the evaluation of (h b) is as slow as the evaluation of (f a),
whereas the evaluation of (g a) is a little bit faster than the others. (The
times of (g a) and (h b) do not sum up to the time of (f a).) What can I
conclude from that? Is there a better way to analyse f?

Thanks for your help in advance!
Tillmann






Archive powered by MHonArc 2.6.18.

Top of Page