Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1005)

Unified Diff: src/platform/vboot_reference/tests/sha_benchmark.c

Issue 660317: Make SHA benchmark output follow convention. (Closed)
Patch Set: Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/vboot_reference/tests/sha_benchmark.c
diff --git a/src/platform/vboot_reference/tests/sha_benchmark.c b/src/platform/vboot_reference/tests/sha_benchmark.c
index d6e47043e207625211ae59ce31e6f641316f50a4..498e25b8e098ffa11376eb2b91badc0889c32445 100644
--- a/src/platform/vboot_reference/tests/sha_benchmark.c
+++ b/src/platform/vboot_reference/tests/sha_benchmark.c
@@ -21,9 +21,9 @@ typedef struct HashFxTable {
} HashFxTable;
HashFxTable hash_functions[NUM_HASH_ALGORITHMS] = {
- {SHA1, "SHA1"},
- {SHA256, "SHA256"},
- {SHA512, "SHA512"}
+ {SHA1, "sha1"},
+ {SHA256, "sha256"},
+ {SHA512, "sha512"}
};
int main(int argc, char* argv[]) {
@@ -47,7 +47,7 @@ int main(int argc, char* argv[]) {
fprintf(stderr, "# %s Time taken = %u ms, Speed = %f Mbytes/sec\n",
hash_functions[i].description, msecs, speed);
- fprintf(stdout, "%s:%f\n",
+ fprintf(stdout, "mbytes_per_sec_%s:%f\n",
hash_functions[i].description, speed);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698