How to do fast performance timing

From: Benedikt Grundmann <bgrundmann(at)janestreet(dot)com>
To: PostgreSQL-Dev <pgsql-hackers(at)postgresql(dot)org>
Subject: How to do fast performance timing
Date: 2013-12-09 13:33:02
Message-ID: CADbMkNPH7vz-hDkdngSQc7A2jRD4duZEZThLWuezgCjJL36GPw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At Jane Street we have recently spend a lot of time trying to get a fast
gettimeofday. I saw lots of references in various postgres hacker threads
related to a lack of such a facility so ....

The culmination of those efforts can be read here:

https://github.com/janestreet/core/blob/master/lib/time_stamp_counter.mli
and

https://github.com/janestreet/core/blob/master/lib/time_stamp_counter.ml

it's all OCaml but the code is mostly imperative and very well documented.
In particular we made an effort to document our assumption. There are a
few which are ocaml specific. But a lot of the lessons we have learned
here should be applicable to postgres.

Hope this will be useful,

Cheers,

Bene

PS: We are releasing our code under the Apache license so you should feel
free to reuse the ideas.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2013-12-09 13:46:51 Re: Time-Delayed Standbys
Previous Message MauMau 2013-12-09 13:05:38 Re: Recovery to backup point