Ivailo Monev
|
fe5b630b28
|
drop all but the custom hash algorithm
don't need them
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2023-11-05 00:18:07 +02:00 |
|
Ivailo Monev
|
4301ae4e15
|
optimize qt_safe_poll() for single file descriptor poll
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2022-08-22 15:20:29 +03:00 |
|
Ivailo Monev
|
ffda9b0a9f
|
remove non-operational async QHostInfo methods and setters that should've never been public
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2022-05-17 05:47:09 +03:00 |
|
Ivailo Monev
|
3227047514
|
drop BLAKE3 in favour of custom hash algorithm
faster than BLAKE3 and the other algorithms with collisions risk
reduced based on the length of the input data, benchmark result:
********* Start testing of tst_qcryptographichash *********
Config: Using QTest library 4.12.0, Katie 4.12.0
PASS : tst_qcryptographichash::initTestCase()
RESULT : tst_qcryptographichash::append():"10 (Md5)":
0.00280 msecs per iteration (total: 561, iterations: 200000)
RESULT : tst_qcryptographichash::append():"10 (Sha1)":
0.00333 msecs per iteration (total: 667, iterations: 200000)
RESULT : tst_qcryptographichash::append():"10 (Sha256)":
0.00467 msecs per iteration (total: 934, iterations: 200000)
RESULT : tst_qcryptographichash::append():"10 (Sha512)":
0.00361 msecs per iteration (total: 723, iterations: 200000)
RESULT : tst_qcryptographichash::append():"10 (KAT)":
0.00219 msecs per iteration (total: 439, iterations: 200000)
RESULT : tst_qcryptographichash::append():"100 (Md5)":
0.000620 msecs per iteration (total: 124, iterations: 200000)
RESULT : tst_qcryptographichash::append():"100 (Sha1)":
0.00109 msecs per iteration (total: 219, iterations: 200000)
RESULT : tst_qcryptographichash::append():"100 (Sha256)":
0.000900 msecs per iteration (total: 180, iterations: 200000)
RESULT : tst_qcryptographichash::append():"100 (Sha512)":
0.00106 msecs per iteration (total: 212, iterations: 200000)
RESULT : tst_qcryptographichash::append():"100 (KAT)":
0.000740 msecs per iteration (total: 148, iterations: 200000)
RESULT : tst_qcryptographichash::append():"250 (Md5)":
0.000580 msecs per iteration (total: 116, iterations: 200000)
RESULT : tst_qcryptographichash::append():"250 (Sha1)":
0.00134 msecs per iteration (total: 268, iterations: 200000)
RESULT : tst_qcryptographichash::append():"250 (Sha256)":
0.000845 msecs per iteration (total: 169, iterations: 200000)
RESULT : tst_qcryptographichash::append():"250 (Sha512)":
0.00100 msecs per iteration (total: 200, iterations: 200000)
RESULT : tst_qcryptographichash::append():"250 (KAT)":
0.000625 msecs per iteration (total: 125, iterations: 200000)
RESULT : tst_qcryptographichash::append():"500 (Md5)":
0.000550 msecs per iteration (total: 110, iterations: 200000)
RESULT : tst_qcryptographichash::append():"500 (Sha1)":
0.00137 msecs per iteration (total: 274, iterations: 200000)
RESULT : tst_qcryptographichash::append():"500 (Sha256)":
0.000830 msecs per iteration (total: 166, iterations: 200000)
RESULT : tst_qcryptographichash::append():"500 (Sha512)":
0.000985 msecs per iteration (total: 197, iterations: 200000)
RESULT : tst_qcryptographichash::append():"500 (KAT)":
0.000575 msecs per iteration (total: 115, iterations: 200000)
PASS : tst_qcryptographichash::append()
RESULT : tst_qcryptographichash::append_once():"Md5":
0.00155 msecs per iteration (total: 310, iterations: 200000)
RESULT : tst_qcryptographichash::append_once():"Sha1":
0.00212 msecs per iteration (total: 424, iterations: 200000)
RESULT : tst_qcryptographichash::append_once():"Sha256":
0.00414 msecs per iteration (total: 828, iterations: 200000)
RESULT : tst_qcryptographichash::append_once():"Sha512":
0.00314 msecs per iteration (total: 629, iterations: 200000)
RESULT : tst_qcryptographichash::append_once():"KAT":
0.000805 msecs per iteration (total: 161, iterations: 200000)
PASS : tst_qcryptographichash::append_once()
RESULT : tst_qcryptographichash::statichash():"Md5":
0.00149 msecs per iteration (total: 298, iterations: 200000)
RESULT : tst_qcryptographichash::statichash():"Sha1":
0.00206 msecs per iteration (total: 413, iterations: 200000)
RESULT : tst_qcryptographichash::statichash():"Sha256":
0.00408 msecs per iteration (total: 817, iterations: 200000)
RESULT : tst_qcryptographichash::statichash():"Sha512":
0.00309 msecs per iteration (total: 618, iterations: 200000)
RESULT : tst_qcryptographichash::statichash():"KAT":
0.000610 msecs per iteration (total: 122, iterations: 200000)
PASS : tst_qcryptographichash::statichash()
PASS : tst_qcryptographichash::cleanupTestCase()
Totals: 5 passed, 0 failed, 0 skipped
********* Finished testing of tst_qcryptographichash *********
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2022-03-13 23:07:11 +02:00 |
|
Ivailo Monev
|
4e5220dede
|
drop BLAKE2b and BLAKE2s in favour of BLAKE3
unfortunetly the reference C implementation
(https://github.com/oconnor663/blake3_reference_impl_c) was slower on
static hash benchmark, faster on incremental hashing tho. while BLAKE2b
and BLAKE2s were faster than SHA-2 on incremental hashing BLAKE3 is
faster on both static and incremental hashing (compared to SHA-256),
benchmark results:
********* Start testing of tst_qcryptographichash *********
Config: Using QTest library 4.12.0, Katie 4.12.0
PASS : tst_qcryptographichash::initTestCase()
RESULT : tst_qcryptographichash::append():"10 (Md5)":
0.00281 msecs per iteration (total: 563, iterations: 200000)
RESULT : tst_qcryptographichash::append():"10 (Sha1)":
0.00334 msecs per iteration (total: 669, iterations: 200000)
RESULT : tst_qcryptographichash::append():"10 (Sha256)":
0.00468 msecs per iteration (total: 936, iterations: 200000)
RESULT : tst_qcryptographichash::append():"10 (Sha512)":
0.00366 msecs per iteration (total: 732, iterations: 200000)
RESULT : tst_qcryptographichash::append():"10 (BLAKE3)":
0.00219 msecs per iteration (total: 438, iterations: 200000)
RESULT : tst_qcryptographichash::append():"100 (Md5)":
0.000660 msecs per iteration (total: 132, iterations: 200000)
RESULT : tst_qcryptographichash::append():"100 (Sha1)":
0.00112 msecs per iteration (total: 224, iterations: 200000)
RESULT : tst_qcryptographichash::append():"100 (Sha256)":
0.000935 msecs per iteration (total: 187, iterations: 200000)
RESULT : tst_qcryptographichash::append():"100 (Sha512)":
0.00108 msecs per iteration (total: 216, iterations: 200000)
RESULT : tst_qcryptographichash::append():"100 (BLAKE3)":
0.000775 msecs per iteration (total: 155, iterations: 200000)
RESULT : tst_qcryptographichash::append():"250 (Md5)":
0.000590 msecs per iteration (total: 118, iterations: 200000)
RESULT : tst_qcryptographichash::append():"250 (Sha1)":
0.00135 msecs per iteration (total: 271, iterations: 200000)
RESULT : tst_qcryptographichash::append():"250 (Sha256)":
0.000870 msecs per iteration (total: 174, iterations: 200000)
RESULT : tst_qcryptographichash::append():"250 (Sha512)":
0.00101 msecs per iteration (total: 203, iterations: 200000)
RESULT : tst_qcryptographichash::append():"250 (BLAKE3)":
0.000655 msecs per iteration (total: 131, iterations: 200000)
RESULT : tst_qcryptographichash::append():"500 (Md5)":
0.000575 msecs per iteration (total: 115, iterations: 200000)
RESULT : tst_qcryptographichash::append():"500 (Sha1)":
0.00138 msecs per iteration (total: 276, iterations: 200000)
RESULT : tst_qcryptographichash::append():"500 (Sha256)":
0.000855 msecs per iteration (total: 171, iterations: 200000)
RESULT : tst_qcryptographichash::append():"500 (Sha512)":
0.00100 msecs per iteration (total: 200, iterations: 200000)
RESULT : tst_qcryptographichash::append():"500 (BLAKE3)":
0.000610 msecs per iteration (total: 122, iterations: 200000)
PASS : tst_qcryptographichash::append()
RESULT : tst_qcryptographichash::append_once():"Md5":
0.00157 msecs per iteration (total: 315, iterations: 200000)
RESULT : tst_qcryptographichash::append_once():"Sha1":
0.00217 msecs per iteration (total: 434, iterations: 200000)
RESULT : tst_qcryptographichash::append_once():"Sha256":
0.00428 msecs per iteration (total: 857, iterations: 200000)
RESULT : tst_qcryptographichash::append_once():"Sha512":
0.00319 msecs per iteration (total: 638, iterations: 200000)
RESULT : tst_qcryptographichash::append_once():"BLAKE3":
0.00164 msecs per iteration (total: 329, iterations: 200000)
PASS : tst_qcryptographichash::append_once()
RESULT : tst_qcryptographichash::statichash():"Md5":
0.00149 msecs per iteration (total: 299, iterations: 200000)
RESULT : tst_qcryptographichash::statichash():"Sha1":
0.00206 msecs per iteration (total: 413, iterations: 200000)
RESULT : tst_qcryptographichash::statichash():"Sha256":
0.00408 msecs per iteration (total: 816, iterations: 200000)
RESULT : tst_qcryptographichash::statichash():"Sha512":
0.00308 msecs per iteration (total: 616, iterations: 200000)
RESULT : tst_qcryptographichash::statichash():"BLAKE3":
0.00137 msecs per iteration (total: 274, iterations: 200000)
PASS : tst_qcryptographichash::statichash()
PASS : tst_qcryptographichash::cleanupTestCase()
Totals: 5 passed, 0 failed, 0 skipped
********* Finished testing of tst_qcryptographichash *********
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2022-03-11 21:15:42 +02:00 |
|
Ivailo Monev
|
c7a0ad8a5e
|
QCryptographicHash benchmark review
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2022-03-11 20:13:10 +02:00 |
|
Ivailo Monev
|
75589486a3
|
add support for BLAKE2b and BLAKE2s hash sums
benchmark results:
********* Start testing of tst_qcryptographichash *********
Config: Using QTest library 4.12.0, Katie 4.12.0
PASS : tst_qcryptographichash::initTestCase()
RESULT : tst_qcryptographichash::append():"10 (Md5)":
0.00275 msecs per iteration (total: 551, iterations: 200000)
RESULT : tst_qcryptographichash::append():"100 (Md5)":
0.000625 msecs per iteration (total: 125, iterations: 200000)
RESULT : tst_qcryptographichash::append():"250 (Md5)":
0.000570 msecs per iteration (total: 114, iterations: 200000)
RESULT : tst_qcryptographichash::append():"500 (Md5)":
0.000550 msecs per iteration (total: 110, iterations: 200000)
RESULT : tst_qcryptographichash::append():"10 (Sha1)":
0.00327 msecs per iteration (total: 655, iterations: 200000)
RESULT : tst_qcryptographichash::append():"100 (Sha1)":
0.00106 msecs per iteration (total: 212, iterations: 200000)
RESULT : tst_qcryptographichash::append():"250 (Sha1)":
0.00131 msecs per iteration (total: 262, iterations: 200000)
RESULT : tst_qcryptographichash::append():"500 (Sha1)":
0.00133 msecs per iteration (total: 267, iterations: 200000)
RESULT : tst_qcryptographichash::append():"10 (Sha256)":
0.00467 msecs per iteration (total: 934, iterations: 200000)
RESULT : tst_qcryptographichash::append():"100 (Sha256)":
0.000895 msecs per iteration (total: 179, iterations: 200000)
RESULT : tst_qcryptographichash::append():"250 (Sha256)":
0.000850 msecs per iteration (total: 170, iterations: 200000)
RESULT : tst_qcryptographichash::append():"500 (Sha256)":
0.000825 msecs per iteration (total: 165, iterations: 200000)
RESULT : tst_qcryptographichash::append():"10 (Sha512)":
0.00361 msecs per iteration (total: 723, iterations: 200000)
RESULT : tst_qcryptographichash::append():"100 (Sha512)":
0.00105 msecs per iteration (total: 211, iterations: 200000)
RESULT : tst_qcryptographichash::append():"250 (Sha512)":
0.000995 msecs per iteration (total: 199, iterations: 200000)
RESULT : tst_qcryptographichash::append():"500 (Sha512)":
0.000980 msecs per iteration (total: 196, iterations: 200000)
RESULT : tst_qcryptographichash::append():"10 (BLAKE2b)":
0.00278 msecs per iteration (total: 557, iterations: 200000)
RESULT : tst_qcryptographichash::append():"100 (BLAKE2b)":
0.000740 msecs per iteration (total: 148, iterations: 200000)
RESULT : tst_qcryptographichash::append():"250 (BLAKE2b)":
0.000690 msecs per iteration (total: 138, iterations: 200000)
RESULT : tst_qcryptographichash::append():"500 (BLAKE2b)":
0.000650 msecs per iteration (total: 130, iterations: 200000)
RESULT : tst_qcryptographichash::append():"10 (BLAKE2s)":
0.00335 msecs per iteration (total: 670, iterations: 200000)
RESULT : tst_qcryptographichash::append():"100 (BLAKE2s)":
0.000645 msecs per iteration (total: 129, iterations: 200000)
RESULT : tst_qcryptographichash::append():"250 (BLAKE2s)":
0.000600 msecs per iteration (total: 120, iterations: 200000)
RESULT : tst_qcryptographichash::append():"500 (BLAKE2s)":
0.000580 msecs per iteration (total: 116, iterations: 200000)
PASS : tst_qcryptographichash::append()
RESULT : tst_qcryptographichash::append_once():"Md5":
0.00154 msecs per iteration (total: 308, iterations: 200000)
RESULT : tst_qcryptographichash::append_once():"Sha1":
0.00211 msecs per iteration (total: 422, iterations: 200000)
RESULT : tst_qcryptographichash::append_once():"Sha256":
0.00415 msecs per iteration (total: 831, iterations: 200000)
RESULT : tst_qcryptographichash::append_once():"Sha512":
0.00314 msecs per iteration (total: 629, iterations: 200000)
RESULT : tst_qcryptographichash::append_once():"BLAKE2b":
0.00164 msecs per iteration (total: 328, iterations: 200000)
RESULT : tst_qcryptographichash::append_once():"BLAKE2s":
0.00217 msecs per iteration (total: 435, iterations: 200000)
PASS : tst_qcryptographichash::append_once()
RESULT : tst_qcryptographichash::statichash():"Md5":
0.00148 msecs per iteration (total: 297, iterations: 200000)
RESULT : tst_qcryptographichash::statichash():"Sha1":
0.00206 msecs per iteration (total: 412, iterations: 200000)
RESULT : tst_qcryptographichash::statichash():"Sha256":
0.00409 msecs per iteration (total: 818, iterations: 200000)
RESULT : tst_qcryptographichash::statichash():"Sha512":
0.00307 msecs per iteration (total: 614, iterations: 200000)
RESULT : tst_qcryptographichash::statichash():"BLAKE2b":
0.00157 msecs per iteration (total: 314, iterations: 200000)
RESULT : tst_qcryptographichash::statichash():"BLAKE2s":
0.00211 msecs per iteration (total: 422, iterations: 200000)
PASS : tst_qcryptographichash::statichash()
RESULT : tst_qcryptographichash::algorithms():"Md5":
0.00148 msecs per iteration (total: 297, iterations: 200000)
RESULT : tst_qcryptographichash::algorithms():"Sha1":
0.00206 msecs per iteration (total: 412, iterations: 200000)
RESULT : tst_qcryptographichash::algorithms():"Sha256":
0.00409 msecs per iteration (total: 819, iterations: 200000)
RESULT : tst_qcryptographichash::algorithms():"Sha512":
0.00307 msecs per iteration (total: 614, iterations: 200000)
RESULT : tst_qcryptographichash::algorithms():"BLAKE2b":
0.00157 msecs per iteration (total: 314, iterations: 200000)
RESULT : tst_qcryptographichash::algorithms():"BLAKE2s":
0.00212 msecs per iteration (total: 424, iterations: 200000)
PASS : tst_qcryptographichash::algorithms()
PASS : tst_qcryptographichash::cleanupTestCase()
Totals: 6 passed, 0 failed, 0 skipped
********* Finished testing of tst_qcryptographichash *********
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2022-03-11 06:22:46 +02:00 |
|
Ivailo Monev
|
bfee83b9ab
|
benchmark all QCryptographicHash algorithms
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2022-03-11 04:48:35 +02:00 |
|
Ivailo Monev
|
4a129d3e5a
|
drop Md4 support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2022-02-24 00:44:30 +02:00 |
|
Ivailo Monev
|
3cea79e9f4
|
merge QNativeSocketEngine into QAbstractSocketEngine, it doesn't do proxies so drop support for that while at it [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2022-02-23 23:17:23 +02:00 |
|
Ivailo Monev
|
fba2c2132c
|
drop SSL support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2022-02-21 15:25:20 +02:00 |
|
Ivailo Monev
|
59da27ca99
|
drop network access classes [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2022-02-19 17:38:56 +02:00 |
|
Ivailo Monev
|
20443178a9
|
get rid of QDesktopServices [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2021-11-21 17:48:14 +02:00 |
|
Ivailo Monev
|
58691c8126
|
add select() vs poll() benchmark
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2021-09-30 20:15:13 +03:00 |
|
Ivailo Monev
|
9499915786
|
drop symbian/harmattan related bearer management support [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2021-08-25 17:57:46 +03:00 |
|
Ivailo Monev
|
b4d71cc15a
|
get rid of Q_NULLPTR definition [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2021-08-06 15:35:28 +03:00 |
|
Ivailo Monev
|
34798b22f3
|
drop support for SHA-224 and SHA-384 hash sum
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2021-07-23 15:23:46 +03:00 |
|
Ivailo Monev
|
426f22db6e
|
remove optional license exception
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2021-02-08 15:08:15 +02:00 |
|
Ivailo Monev
|
bdfa9a8c84
|
update copyright to ease maintaince [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2021-02-05 06:18:50 +02:00 |
|
Ivailo Monev
|
58ef830341
|
copyright update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2021-01-02 01:59:24 +02:00 |
|
Ivailo Monev
|
8252467900
|
unsupported operating systems cruft removal
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2020-10-26 16:27:43 +02:00 |
|
Ivailo Monev
|
1bc44a50a9
|
move QCryptographicHash benchmark to network and link it to the component
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
|
2020-05-06 02:35:18 +00:00 |
|
Ivailo Monev
|
a02818602d
|
simplify inline if/else statements
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
|
2020-01-19 18:57:59 +00:00 |
|
Ivailo Monev
|
bf349cbb86
|
introduce QT_BUFFSIZE
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
|
2020-01-11 23:38:06 +00:00 |
|
Ivailo Monev
|
5b459cf0ec
|
update copyright and add script for doing so
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
|
2019-12-29 23:21:34 +00:00 |
|
Ivailo Monev
|
16bd09d842
|
check received results count instead of timeout in QHostInfo benchmark
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
|
2019-11-25 08:42:31 +00:00 |
|
Ivailo Monev
|
ade0644f21
|
remove invalid hostnames from QHostInfo benchmark
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
|
2019-11-23 12:51:56 +00:00 |
|
Ivailo Monev
|
b6b48efa67
|
qnetworkreply and tcpserver benchmarks are broken
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
|
2019-07-07 11:42:44 +00:00 |
|
Ivailo Monev
|
80d4bc168e
|
more copyright changes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
|
2019-06-03 14:21:30 +00:00 |
|
Ivailo Monev
|
74bb412630
|
copyright changes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
|
2019-06-03 13:38:02 +00:00 |
|
Ivailo Monev
|
8d240f4997
|
deal with FIXME about tests
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
|
2019-05-17 20:46:49 +00:00 |
|
Ivailo Monev
|
67cbbe4e9f
|
minor cleanup
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
|
2016-10-19 05:41:46 +00:00 |
|
Ivailo Monev
|
37bfbb8042
|
fix build of tests
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
|
2016-10-18 21:01:11 +00:00 |
|
Ivailo Monev
|
9d743d159e
|
fix some compiler warnings in benchmarks
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
|
2016-09-11 18:13:00 +00:00 |
|
Ivailo Monev
|
221925eeb2
|
fix some compiler warnings in benchmarks
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2016-07-12 16:44:05 +00:00 |
|
Ivailo Monev
|
fa5009664a
|
various cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2016-07-12 12:08:29 +00:00 |
|
Ivailo Monev
|
848da3f891
|
set a timeout for the network reply test
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2016-07-04 10:13:48 +00:00 |
|
Ivailo Monev
|
77c5027d0e
|
tests build and compiler warning fixes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2016-06-30 14:03:51 +00:00 |
|
Ivailo Monev
|
95d4104adf
|
port gui and network benchmarks to CMake build system
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2016-02-01 20:12:04 +02:00 |
|
Ivailo Monev
|
7e2cedaf54
|
add benchmarks from Qt4, some of which not yet ported to CMake build system
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
|
2016-02-01 03:33:31 +02:00 |
|