[Webkit-unassigned] [Bug 204398] [Win] Use thread_local to hold Ref<WTF::Thread> in the thread rather than using FLS

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 2 01:36:20 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=204398

--- Comment #7 from Fujii Hironori <Hironori.Fujii at sony.com> ---
In Comment 6, Cpp11Tls was performed badly, but this seems anomaly.
I tested several times, Cpp11Tls is performing nicely.

Note: Google Test filter = ThreadLocalStoragePerfTest.*
[==========] Running 4 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 4 tests from ThreadLocalStoragePerfTest
[ RUN      ] ThreadLocalStoragePerfTest.ThreadLocalStorage
*RESULT TLS read throughput: ThreadLocalStorage= 26487.891060601647 operations/ms
*RESULT TLS read throughput: ThreadLocalStorage= 37 ns/operation
*RESULT TLS write throughput: ThreadLocalStorage= 25845.202742692916 operations/ms
*RESULT TLS write throughput: ThreadLocalStorage= 38 ns/operation
*RESULT TLS read-write throughput: ThreadLocalStorage= 12489.306031710348 operations/ms
*RESULT TLS read-write throughput: ThreadLocalStorage= 80 ns/operation
*RESULT TLS read throughput: ThreadLocalStorage 4 threads= 23530.8512991383 operations/ms
*RESULT TLS read throughput: ThreadLocalStorage 4 threads= 42 ns/operation
*RESULT TLS write throughput: ThreadLocalStorage 4 threads= 23237.764155284036 operations/ms
*RESULT TLS write throughput: ThreadLocalStorage 4 threads= 43 ns/operation
*RESULT TLS read-write throughput: ThreadLocalStorage 4 threads= 11322.797093211531 operations/ms
*RESULT TLS read-write throughput: ThreadLocalStorage 4 threads= 88 ns/operation
[       OK ] ThreadLocalStoragePerfTest.ThreadLocalStorage (3324 ms)
[ RUN      ] ThreadLocalStoragePerfTest.PlatformFls
*RESULT TLS read throughput: PlatformFls= 153862.72367793455 operations/ms
*RESULT TLS read throughput: PlatformFls= 6 ns/operation
*RESULT TLS write throughput: PlatformFls= 121104.96167027965 operations/ms
*RESULT TLS write throughput: PlatformFls= 8 ns/operation
*RESULT TLS read-write throughput: PlatformFls= 64830.662310046166 operations/ms
*RESULT TLS read-write throughput: PlatformFls= 15 ns/operation
*RESULT TLS read throughput: PlatformFls 4 threads= 137059.52495168653 operations/ms
*RESULT TLS read throughput: PlatformFls 4 threads= 7 ns/operation
*RESULT TLS write throughput: PlatformFls 4 threads= 104171.00712529689 operations/ms
*RESULT TLS write throughput: PlatformFls 4 threads= 9 ns/operation
*RESULT TLS read-write throughput: PlatformFls 4 threads= 56775.2777730465 operations/ms
*RESULT TLS read-write throughput: PlatformFls 4 threads= 17 ns/operation
[       OK ] ThreadLocalStoragePerfTest.PlatformFls (668 ms)
[ RUN      ] ThreadLocalStoragePerfTest.PlatformTls
*RESULT TLS read throughput: PlatformTls= 298124.7950392034 operations/ms
*RESULT TLS read throughput: PlatformTls= 3 ns/operation
*RESULT TLS write throughput: PlatformTls= 176619.1561136721 operations/ms
*RESULT TLS write throughput: PlatformTls= 5 ns/operation
*RESULT TLS read-write throughput: PlatformTls= 128373.0005905158 operations/ms
*RESULT TLS read-write throughput: PlatformTls= 7 ns/operation
*RESULT TLS read throughput: PlatformTls 4 threads= 264228.71637689584 operations/ms
*RESULT TLS read throughput: PlatformTls 4 threads= 3 ns/operation
*RESULT TLS write throughput: PlatformTls 4 threads= 169497.2710939354 operations/ms
*RESULT TLS write throughput: PlatformTls 4 threads= 5 ns/operation
*RESULT TLS read-write throughput: PlatformTls 4 threads= 115937.99635954692 operations/ms
*RESULT TLS read-write throughput: PlatformTls 4 threads= 8 ns/operation
[       OK ] ThreadLocalStoragePerfTest.PlatformTls (371 ms)
[ RUN      ] ThreadLocalStoragePerfTest.Cpp11Tls
*RESULT TLS read throughput: C++ thread_local TLS= 359828.7215285524 operations/ms
*RESULT TLS read throughput: C++ thread_local TLS= 2 ns/operation
*RESULT TLS write throughput: C++ thread_local TLS= 357193.8848406915 operations/ms
*RESULT TLS write throughput: C++ thread_local TLS= 2 ns/operation
*RESULT TLS read-write throughput: C++ thread_local TLS= 226911.7313365101 operations/ms
*RESULT TLS read-write throughput: C++ thread_local TLS= 4 ns/operation
*RESULT TLS read throughput: C++ thread_local TLS 4 threads= 325595.0249080194 operations/ms
*RESULT TLS read throughput: C++ thread_local TLS 4 threads= 3 ns/operation
*RESULT TLS write throughput: C++ thread_local TLS 4 threads= 325870.8899534005 operations/ms
*RESULT TLS write throughput: C++ thread_local TLS 4 threads= 3 ns/operation
*RESULT TLS read-write throughput: C++ thread_local TLS 4 threads= 206577.42521897206 operations/ms
*RESULT TLS read-write throughput: C++ thread_local TLS 4 threads= 4 ns/operation
[       OK ] ThreadLocalStoragePerfTest.Cpp11Tls (225 ms)
[----------] 4 tests from ThreadLocalStoragePerfTest (4590 ms total)

[----------] Global test environment tear-down
[==========] 4 tests from 1 test suite ran. (4597 ms total)
[  PASSED  ] 4 tests.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191202/033e8219/attachment.htm>


More information about the webkit-unassigned mailing list