authorgravatar for 63465728+AliChraghi@users.noreply.github.comAli Chraghi <63465728+AliChraghi@users.noreply.github.com> 2021-09-20 10:33:18+04:30
committergravatar for noreply@github.comGitHub <noreply@github.com> 2021-09-19 23:03:18-07:00
logdb181b173f6debc2dbb1e68342ff46a4299c19a9
tree836853255b809ec1bb284da0efca8f104c6f6bfe
parentcfd5b81850d0234a5011c98f840d93bed47210c1
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Update `hash` & `crypto` benchmarks run comment (#9790)

* sync function arguments name with other same functions

3 files changed, 6 insertions(+), 6 deletions(-)

lib/std/crypto/benchmark.zig+1-1
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1// zig run benchmark.zig --release-fast --zig-lib-dir ..1// zig run -O ReleaseFast --zig-lib-dir ../.. benchmark.zig
22
3const std = @import("../std.zig");3const std = @import("../std.zig");
4const builtin = std.builtin;4const builtin = std.builtin;
lib/std/crypto/blake3.zig+4-4
...@@ -398,10 +398,10 @@ pub const Blake3 = struct {...@@ -398,10 +398,10 @@ pub const Blake3 = struct {
398 return Blake3.init_internal(context_key_words, DERIVE_KEY_MATERIAL);398 return Blake3.init_internal(context_key_words, DERIVE_KEY_MATERIAL);
399 }399 }
400400
401 pub fn hash(in: []const u8, out: []u8, options: Options) void {401 pub fn hash(b: []const u8, out: []u8, options: Options) void {
402 var hasher = Blake3.init(options);402 var d = Blake3.init(options);
403 hasher.update(in);403 d.update(b);
404 hasher.final(out);404 d.final(out);
405 }405 }
406406
407 fn pushCv(self: *Blake3, cv: [8]u32) void {407 fn pushCv(self: *Blake3, cv: [8]u32) void {
lib/std/hash/benchmark.zig+1-1
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1// zig run benchmark.zig --release-fast --zig-lib-dir ..1// zig run -O ReleaseFast --zig-lib-dir ../.. benchmark.zig
22
3const builtin = std.builtin;3const builtin = std.builtin;
4const std = @import("std");4const std = @import("std");