Disable lockfree-list.impure.

There's no way to make it generally work, it depends on the number of
cores and the current CPU load.
This commit is contained in:
Stas Boukarev 2018-12-07 14:23:13 +03:00
parent ffe52280ee
commit f74a10a3d6

View file

@ -152,12 +152,13 @@
et-locked et-lockfree ratio))
(setq best (max ratio best))))))))
(test-util:with-test (:name :lockfree-list-performance)
(test-util:with-test (:name :lockfree-list-performance
:skipped-on :sbcl)
(let ((cpus
(max 1
#-win32 (sb-alien:alien-funcall
(sb-alien:extern-alien "sysconf"
(function sb-alien:long sb-alien:int))
sb-unix::sc-nprocessors-onln)
#+win32 (sb-alien:extern-alien "os_number_of_processors" sb-alien:int))))
(max 1
#-win32 (sb-alien:alien-funcall
(sb-alien:extern-alien "sysconf"
(function sb-alien:long sb-alien:int))
sb-unix::sc-nprocessors-onln)
#+win32 (sb-alien:extern-alien "os_number_of_processors" sb-alien:int))))
(assert (> (primitive-benchmark) (min 2 (log cpus 2))))))