mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
pg_test_timing: Add NLS
Also straighten out use of time unit abbreviations a bit. Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
This commit is contained in:
@ -96,9 +96,9 @@
|
||||
|
||||
<screen>
|
||||
Testing timing overhead for 3 seconds.
|
||||
Per loop time including overhead: 35.96 nsec
|
||||
Per loop time including overhead: 35.96 ns
|
||||
Histogram of timing durations:
|
||||
< usec % of total count
|
||||
< us % of total count
|
||||
1 96.40465 80435604
|
||||
2 3.59518 2999652
|
||||
4 0.00015 126
|
||||
@ -109,9 +109,9 @@ Histogram of timing durations:
|
||||
|
||||
<para>
|
||||
Note that different units are used for the per loop time than the
|
||||
histogram. The loop can have resolution within a few nanoseconds (nsec),
|
||||
histogram. The loop can have resolution within a few nanoseconds (ns),
|
||||
while the individual timing calls can only resolve down to one microsecond
|
||||
(usec).
|
||||
(us).
|
||||
</para>
|
||||
|
||||
</refsect2>
|
||||
@ -157,9 +157,9 @@ EXPLAIN ANALYZE SELECT COUNT(*) FROM t;
|
||||
tsc hpet acpi_pm
|
||||
# echo acpi_pm > /sys/devices/system/clocksource/clocksource0/current_clocksource
|
||||
# pg_test_timing
|
||||
Per loop time including overhead: 722.92 nsec
|
||||
Per loop time including overhead: 722.92 ns
|
||||
Histogram of timing durations:
|
||||
< usec % of total count
|
||||
< us % of total count
|
||||
1 27.84870 1155682
|
||||
2 72.05956 2990371
|
||||
4 0.07810 3241
|
||||
@ -170,7 +170,7 @@ Histogram of timing durations:
|
||||
|
||||
<para>
|
||||
In this configuration, the sample <command>EXPLAIN ANALYZE</command> above
|
||||
takes 115.9 ms. That's 1061 nsec of timing overhead, again a small multiple
|
||||
takes 115.9 ms. That's 1061 ns of timing overhead, again a small multiple
|
||||
of what's measured directly by this utility. That much timing overhead
|
||||
means the actual query itself is only taking a tiny fraction of the
|
||||
accounted for time, most of it is being consumed in overhead instead. In
|
||||
@ -211,7 +211,7 @@ $ pg_test_timing
|
||||
Testing timing overhead for 3 seconds.
|
||||
Per timing duration including loop overhead: 97.75 ns
|
||||
Histogram of timing durations:
|
||||
< usec % of total count
|
||||
< us % of total count
|
||||
1 90.23734 27694571
|
||||
2 9.75277 2993204
|
||||
4 0.00981 3010
|
||||
|
Reference in New Issue
Block a user