mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
12087d6757
Small postfix to MDEV-23175 to ensure faster option on FreeBSD and compatibility to Solaris that isn't high resolution. ftime is left as a backup in case an implementation doesn't contain any of these clocks. FreeBSD $ ./unittest/mysys/my_rdtsc-t 1..11 # ----- Routine --------------- # myt.cycles.routine : 5 # myt.nanoseconds.routine : 11 # myt.microseconds.routine : 13 # myt.milliseconds.routine : 11 # myt.ticks.routine : 17 # ----- Frequency ------------- # myt.cycles.frequency : 3610295566 # myt.nanoseconds.frequency : 1000000000 # myt.microseconds.frequency : 1000000 # myt.milliseconds.frequency : 899 # myt.ticks.frequency : 136 # ----- Resolution ------------ # myt.cycles.resolution : 1 # myt.nanoseconds.resolution : 1 # myt.microseconds.resolution : 1 # myt.milliseconds.resolution : 7 # myt.ticks.resolution : 1 # ----- Overhead -------------- # myt.cycles.overhead : 26 # myt.nanoseconds.overhead : 19140 # myt.microseconds.overhead : 19036 # myt.milliseconds.overhead : 578 # myt.ticks.overhead : 21544 ok 1 - my_timer_init() did not crash ok 2 - The cycle timer is strictly increasing ok 3 - The cycle timer is implemented ok 4 - The nanosecond timer is increasing ok 5 - The nanosecond timer is implemented ok 6 - The microsecond timer is increasing ok 7 - The microsecond timer is implemented ok 8 - The millisecond timer is increasing ok 9 - The millisecond timer is implemented ok 10 - The tick timer is increasing ok 11 - The tick timer is implemented |
||
---|---|---|
.. | ||
array.c | ||
base64.c | ||
ChangeLog | ||
charset-def.c | ||
charset.c | ||
checksum.c | ||
CMakeLists.txt | ||
errors.c | ||
file_logger.c | ||
get_password.c | ||
hash.c | ||
lf_alloc-pin.c | ||
lf_dynarray.c | ||
lf_hash.c | ||
list.c | ||
ma_dyncol.c | ||
mf_arr_appstr.c | ||
mf_cache.c | ||
mf_dirname.c | ||
mf_fn_ext.c | ||
mf_format.c | ||
mf_getdate.c | ||
mf_iocache.c | ||
mf_iocache2.c | ||
mf_keycache.c | ||
mf_keycaches.c | ||
mf_loadpath.c | ||
mf_pack.c | ||
mf_path.c | ||
mf_qsort.c | ||
mf_qsort2.c | ||
mf_radix.c | ||
mf_same.c | ||
mf_sort.c | ||
mf_soundex.c | ||
mf_tempdir.c | ||
mf_tempfile.c | ||
mf_unixpath.c | ||
mf_wcomp.c | ||
mulalloc.c | ||
my_access.c | ||
my_addr_resolve.c | ||
my_alarm.c | ||
my_alloc.c | ||
my_atomic.c | ||
my_atomic_writes.c | ||
my_basename.c | ||
my_bit.c | ||
my_bitmap.c | ||
my_chmod.c | ||
my_chsize.c | ||
my_compare.c | ||
my_compress.c | ||
my_conio.c | ||
my_context.c | ||
my_copy.c | ||
my_create.c | ||
my_default.c | ||
my_delete.c | ||
my_div.c | ||
my_dlerror.c | ||
my_error.c | ||
my_file.c | ||
my_fopen.c | ||
my_fstream.c | ||
my_gethwaddr.c | ||
my_getncpus.c | ||
my_getopt.c | ||
my_getpagesize.c | ||
my_getsystime.c | ||
my_getwd.c | ||
my_init.c | ||
my_largepage.c | ||
my_lib.c | ||
my_libwrap.c | ||
my_lock.c | ||
my_lockmem.c | ||
my_malloc.c | ||
my_memmem.c | ||
my_mess.c | ||
my_mkdir.c | ||
my_mmap.c | ||
my_new.cc | ||
my_once.c | ||
my_open.c | ||
my_port.c | ||
my_pread.c | ||
my_pthread.c | ||
my_quick.c | ||
my_rdtsc.c | ||
my_read.c | ||
my_redel.c | ||
my_rename.c | ||
my_rnd.c | ||
my_safehash.c | ||
my_safehash.h | ||
my_seek.c | ||
my_setuser.c | ||
my_sleep.c | ||
my_static.c | ||
my_static.h | ||
my_symlink.c | ||
my_symlink2.c | ||
my_sync.c | ||
my_thr_init.c | ||
my_timer_cycles.il | ||
my_uuid.c | ||
my_wincond.c | ||
my_windac.c | ||
my_winerr.c | ||
my_winfile.c | ||
my_winthread.c | ||
my_write.c | ||
mysys_priv.h | ||
psi_noop.c | ||
ptr_cmp.c | ||
queues.c | ||
safemalloc.c | ||
stacktrace.c | ||
string.c | ||
test_charset.c | ||
test_dir.c | ||
test_thr_mutex.c | ||
test_xml.c | ||
testhash.c | ||
thr_alarm.c | ||
thr_lock.c | ||
thr_mutex.c | ||
thr_rwlock.c | ||
thr_timer.c | ||
tree.c | ||
typelib.c | ||
waiting_threads.c | ||
wqueue.c |