Lines Matching +full:- +full:556
9 * or https://opensource.org/licenses/CDDL-1.0.
23 * Copyright (c) 2021-2022 Tino Reichardt <milky-zfs@mcmilk.de>
59 * Sample output on i3-1005G1 System:
62 * edonr-generic 1278 1625 1769 1776 1783 1778 1771 1767
63 * skein-generic 548 594 613 623 621 623 621 486
64 * sha256-generic 255 270 281 278 279 281 283 283
65 * sha256-x64 288 310 316 317 318 317 317 316
66 * sha256-ssse3 304 342 351 355 356 357 356 356
67 * sha256-avx 311 348 359 362 362 363 363 362
68 * sha256-avx2 330 378 389 395 395 395 395 395
69 * sha256-shani 908 1127 1212 1230 1233 1234 1223 1230
70 * sha512-generic 359 409 431 427 429 430 428 423
71 * sha512-x64 420 473 490 496 497 497 496 495
72 * sha512-avx 406 522 546 560 560 560 556 560
73 * sha512-avx2 464 568 601 606 609 610 607 608
74 * blake3-generic 330 327 324 323 324 320 323 322
75 * blake3-sse2 424 1366 1449 1468 1458 1453 1395 1408
76 * blake3-sse41 453 1554 1658 1703 1689 1669 1622 1630
77 * blake3-avx2 452 2013 3225 3351 3356 3261 3076 3101
78 * blake3-avx512 498 2869 5269 5926 5872 5643 5014 5005
85 off += kmem_scnprintf(buf + off, size, "%-23s", "implementation"); in chksum_kstat_headers()
86 off += kmem_scnprintf(buf + off, size - off, "%8s", "1k"); in chksum_kstat_headers()
87 off += kmem_scnprintf(buf + off, size - off, "%8s", "4k"); in chksum_kstat_headers()
88 off += kmem_scnprintf(buf + off, size - off, "%8s", "16k"); in chksum_kstat_headers()
89 off += kmem_scnprintf(buf + off, size - off, "%8s", "64k"); in chksum_kstat_headers()
90 off += kmem_scnprintf(buf + off, size - off, "%8s", "256k"); in chksum_kstat_headers()
91 off += kmem_scnprintf(buf + off, size - off, "%8s", "1m"); in chksum_kstat_headers()
92 off += kmem_scnprintf(buf + off, size - off, "%8s", "4m"); in chksum_kstat_headers()
93 (void) kmem_scnprintf(buf + off, size - off, "%8s\n", "16m"); in chksum_kstat_headers()
106 kmem_scnprintf(b, 23, "%s-%s", cs->name, cs->impl); in chksum_kstat_data()
107 off += kmem_scnprintf(buf + off, size - off, "%-23s", b); in chksum_kstat_data()
108 off += kmem_scnprintf(buf + off, size - off, "%8llu", in chksum_kstat_data()
109 (u_longlong_t)cs->bs1k); in chksum_kstat_data()
110 off += kmem_scnprintf(buf + off, size - off, "%8llu", in chksum_kstat_data()
111 (u_longlong_t)cs->bs4k); in chksum_kstat_data()
112 off += kmem_scnprintf(buf + off, size - off, "%8llu", in chksum_kstat_data()
113 (u_longlong_t)cs->bs16k); in chksum_kstat_data()
114 off += kmem_scnprintf(buf + off, size - off, "%8llu", in chksum_kstat_data()
115 (u_longlong_t)cs->bs64k); in chksum_kstat_data()
116 off += kmem_scnprintf(buf + off, size - off, "%8llu", in chksum_kstat_data()
117 (u_longlong_t)cs->bs256k); in chksum_kstat_data()
118 off += kmem_scnprintf(buf + off, size - off, "%8llu", in chksum_kstat_data()
119 (u_longlong_t)cs->bs1m); in chksum_kstat_data()
120 off += kmem_scnprintf(buf + off, size - off, "%8llu", in chksum_kstat_data()
121 (u_longlong_t)cs->bs4m); in chksum_kstat_data()
122 (void) kmem_scnprintf(buf + off, size - off, "%8llu\n", in chksum_kstat_data()
123 (u_longlong_t)cs->bs16m); in chksum_kstat_data()
132 ksp->ks_private = (void *)(chksum_stat_data + n); in chksum_kstat_addr()
134 ksp->ks_private = NULL; in chksum_kstat_addr()
136 return (ksp->ks_private); in chksum_kstat_addr()
171 cs->func(abd, size, ctx, &zcp); in chksum_run()
173 run_time_ns = gethrtime() - start; in chksum_run()
191 void *salt = &cs->salt.zcs_bytes; in chksum_benchit()
194 memset(salt, 0, sizeof (cs->salt.zcs_bytes)); in chksum_benchit()
195 if (cs->init) in chksum_benchit()
196 ctx = cs->init(&cs->salt); in chksum_benchit()
200 chksum_run(cs, abd, ctx, 1, &cs->bs1k); in chksum_benchit()
201 chksum_run(cs, abd, ctx, 2, &cs->bs4k); in chksum_benchit()
202 chksum_run(cs, abd, ctx, 3, &cs->bs16k); in chksum_benchit()
203 chksum_run(cs, abd, ctx, 4, &cs->bs64k); in chksum_benchit()
204 chksum_run(cs, abd, ctx, 5, &cs->bs256k); in chksum_benchit()
208 if (cs->bs1k < LIMIT_PERF_MBS) { in chksum_benchit()
219 chksum_run(cs, abd, ctx, 6, &cs->bs1m); in chksum_benchit()
224 chksum_run(cs, abd, ctx, 7, &cs->bs4m); in chksum_benchit()
225 chksum_run(cs, abd, ctx, 8, &cs->bs16m); in chksum_benchit()
231 if (cs->free) in chksum_benchit()
232 cs->free(ctx); in chksum_benchit()
255 chksum_stat_cnt += sha256->getcnt(); in chksum_benchmark()
256 chksum_stat_cnt += sha512->getcnt(); in chksum_benchmark()
257 chksum_stat_cnt += blake3->getcnt(); in chksum_benchmark()
261 /* edonr - needs to be the first one here (slow CPU check) */ in chksum_benchmark()
265 cs->init = abd_checksum_edonr_tmpl_init; in chksum_benchmark()
266 cs->func = abd_checksum_edonr_native; in chksum_benchmark()
267 cs->free = abd_checksum_edonr_tmpl_free; in chksum_benchmark()
268 cs->name = "edonr"; in chksum_benchmark()
269 cs->impl = "generic"; in chksum_benchmark()
274 cs->init = abd_checksum_skein_tmpl_init; in chksum_benchmark()
275 cs->func = abd_checksum_skein_native; in chksum_benchmark()
276 cs->free = abd_checksum_skein_tmpl_free; in chksum_benchmark()
277 cs->name = "skein"; in chksum_benchmark()
278 cs->impl = "generic"; in chksum_benchmark()
282 id_save = sha256->getid(); in chksum_benchmark()
283 for (max = 0, id = 0; id < sha256->getcnt(); id++) { in chksum_benchmark()
284 sha256->setid(id); in chksum_benchmark()
286 cs->init = 0; in chksum_benchmark()
287 cs->func = abd_checksum_sha256; in chksum_benchmark()
288 cs->free = 0; in chksum_benchmark()
289 cs->name = sha256->name; in chksum_benchmark()
290 cs->impl = sha256->getname(); in chksum_benchmark()
292 if (cs->bs256k > max) { in chksum_benchmark()
293 max = cs->bs256k; in chksum_benchmark()
294 sha256->set_fastest(id); in chksum_benchmark()
297 sha256->setid(id_save); in chksum_benchmark()
300 id_save = sha512->getid(); in chksum_benchmark()
301 for (max = 0, id = 0; id < sha512->getcnt(); id++) { in chksum_benchmark()
302 sha512->setid(id); in chksum_benchmark()
304 cs->init = 0; in chksum_benchmark()
305 cs->func = abd_checksum_sha512_native; in chksum_benchmark()
306 cs->free = 0; in chksum_benchmark()
307 cs->name = sha512->name; in chksum_benchmark()
308 cs->impl = sha512->getname(); in chksum_benchmark()
310 if (cs->bs256k > max) { in chksum_benchmark()
311 max = cs->bs256k; in chksum_benchmark()
312 sha512->set_fastest(id); in chksum_benchmark()
315 sha512->setid(id_save); in chksum_benchmark()
318 id_save = blake3->getid(); in chksum_benchmark()
319 for (max = 0, id = 0; id < blake3->getcnt(); id++) { in chksum_benchmark()
320 blake3->setid(id); in chksum_benchmark()
322 cs->init = abd_checksum_blake3_tmpl_init; in chksum_benchmark()
323 cs->func = abd_checksum_blake3_native; in chksum_benchmark()
324 cs->free = abd_checksum_blake3_tmpl_free; in chksum_benchmark()
325 cs->name = blake3->name; in chksum_benchmark()
326 cs->impl = blake3->getname(); in chksum_benchmark()
328 if (cs->bs256k > max) { in chksum_benchmark()
329 max = cs->bs256k; in chksum_benchmark()
330 blake3->set_fastest(id); in chksum_benchmark()
333 blake3->setid(id_save); in chksum_benchmark()
351 chksum_kstat->ks_data = NULL; in chksum_init()
352 chksum_kstat->ks_ndata = UINT32_MAX; in chksum_init()