copyparty/tests
ed e3e51fb83a mitigate google-chrome slow hashing
file hashing became drastically slower in recent chrome versions;

* 748 MiB/s in 131.0.6778.86
* 747 MiB/s in 132.0.6834.160
* 485 MiB/s in 133.0.6943.60
* 319 MiB/s in 134.0.6998.36

the silver lining: it looks like chrome-bug 1352210 is improving
(crypto.subtle, the native hasher, now scales with multiple cores)

* 133.0.6943.60: speed peaked at 2 threads; 341 MiB/s, 485 MiB/s
* 134.0.6998.36: peak at 7; 193, 383, 383, 408, 421, 431, 438, 438
* 137.0.7151.41: peak at 8; 210, 382, 445, 513, 573, 573, 585, 598
   MiB/s when hashing with 1, 2, ..., 7, 8 webworkers respectively
   on a ryzen7-5800x with 2x16g 2133mhz ram

characteristics of versions between v134 and v137 are unknown
(cannot find old official builds to test), but v137 is a good
cutoff for minimizing risk of hitting chrome-bugs

meanwhile, hash-wasm scales linearly up to 8 cores;
0=328 1=377 2=738 3=947 4=1090 5=1190 6=1380 7=1530 8=1810
(0 = wasm on mainthread, no webworkers)

but it looks like chrome-bug 383568268 is making a return,
so keep the limit of max 4 threads if machine has more than
4 cores (and numCores-1 otherwise)
2025-05-27 15:33:50 +00:00
..
res/idp idp: precise expansion of ${u} (fixes #79); 2024-03-21 20:10:27 +00:00
__init__.py fix write-only volumes + add regression test 2021-04-24 02:48:41 +02:00
ptrav.py make linters happier 2023-11-30 17:33:07 +00:00
run.py make linters happier 2023-11-30 17:33:07 +00:00
test_cp.py tests: improve specificity 2024-12-01 15:36:35 +00:00
test_dedup.py tests: improve specificity 2024-12-01 15:36:35 +00:00
test_dots.py tests: fix for f9954bc4e5 2025-04-07 18:59:43 +00:00
test_dxml.py selftest dxml on startup: 2025-01-17 06:06:36 +00:00
test_hooks.py tests: improve specificity 2024-12-01 15:36:35 +00:00
test_httpcli.py webdav: add tests + fix minor edgecases 2024-12-01 14:44:41 +00:00
test_idp.py fix tests on windows 2024-04-25 22:25:38 +00:00
test_metrics.py tests: improve specificity 2024-12-01 15:36:35 +00:00
test_mv.py tests: improve specificity 2024-12-01 15:36:35 +00:00
test_utils.py sqlite and misc optimizations: 2024-09-15 13:18:43 +00:00
test_vfs.py cleanup: strip trailing whitespace 2024-07-26 19:33:56 +00:00
test_webdav.py webdav: add tests + fix minor edgecases 2024-12-01 14:44:41 +00:00
util.py mitigate google-chrome slow hashing 2025-05-27 15:33:50 +00:00