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

Issue 596079: SHA* digest function speed test. (Closed)

Created:
10 years, 10 months ago by gauravsh
Modified:
9 years, 6 months ago
Reviewers:
petkov
CC:
chromium-os-reviews_googlegroups.com
Visibility:
Public.

Description

SHA* digest function speed test. BUG=1210 TEST=This is a test,

Patch Set 1 #

Patch Set 2 : Vboot Crypto: Speed benchmarks for SHA* functions. #

Total comments: 23

Patch Set 3 : Fixes based on comments from the review. #

Total comments: 12

Patch Set 4 : Type fixes. #

Total comments: 2

Patch Set 5 : Add explicit type cast. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -4 lines) Patch
M src/platform/vboot_reference/tests/Makefile View 1 2 3 1 chunk +7 lines, -4 lines 0 comments Download
A src/platform/vboot_reference/tests/sha_benchmark.c View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
A src/platform/vboot_reference/tests/timer_utils.h View 3 1 chunk +26 lines, -0 lines 0 comments Download
A src/platform/vboot_reference/tests/timer_utils.c View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
gauravsh
Once I get an LGTM on this, I will add this to the Vboot crypto ...
10 years, 10 months ago (2010-02-12 03:40:35 UTC) #1
petkov
http://codereview.chromium.org/596079/diff/1001/2001 File src/platform/vboot_reference/tests/Makefile (right): http://codereview.chromium.org/596079/diff/1001/2001#newcode10 src/platform/vboot_reference/tests/Makefile:10: #SRCS = timer_utils.c Remove http://codereview.chromium.org/596079/diff/1001/2001#newcode11 src/platform/vboot_reference/tests/Makefile:11: #OBJS = $(SRCS:.c=.o) ...
10 years, 10 months ago (2010-02-12 08:17:30 UTC) #2
gauravsh
http://codereview.chromium.org/596079/diff/1001/2001 File src/platform/vboot_reference/tests/Makefile (right): http://codereview.chromium.org/596079/diff/1001/2001#newcode10 src/platform/vboot_reference/tests/Makefile:10: #SRCS = timer_utils.c On 2010/02/12 08:17:30, petkov wrote: > ...
10 years, 10 months ago (2010-02-12 08:46:16 UTC) #3
petkov
http://codereview.chromium.org/596079/diff/1001/2002 File src/platform/vboot_reference/tests/sha_benchmark.c (right): http://codereview.chromium.org/596079/diff/1001/2002#newcode14 src/platform/vboot_reference/tests/sha_benchmark.c:14: #define TEST_BUFFER_SIZE 4000000 /* 4 Mbytes. */ On 2010/02/12 ...
10 years, 10 months ago (2010-02-12 15:51:15 UTC) #4
gauravsh
http://codereview.chromium.org/596079/diff/1001/2002 File src/platform/vboot_reference/tests/sha_benchmark.c (right): http://codereview.chromium.org/596079/diff/1001/2002#newcode14 src/platform/vboot_reference/tests/sha_benchmark.c:14: #define TEST_BUFFER_SIZE 4000000 /* 4 Mbytes. */ On 2010/02/12 ...
10 years, 10 months ago (2010-02-12 19:05:08 UTC) #5
petkov
LGTM with one comment. http://codereview.chromium.org/596079/diff/3003/3006 File src/platform/vboot_reference/tests/timer_utils.c (right): http://codereview.chromium.org/596079/diff/3003/3006#newcode21 src/platform/vboot_reference/tests/timer_utils.c:21: uint64_t duration_msecs = (end - ...
10 years, 10 months ago (2010-02-12 19:14:44 UTC) #6
gauravsh
10 years, 10 months ago (2010-02-12 19:19:46 UTC) #7
http://codereview.chromium.org/596079/diff/3003/3006
File src/platform/vboot_reference/tests/timer_utils.c (right):

http://codereview.chromium.org/596079/diff/3003/3006#newcode21
src/platform/vboot_reference/tests/timer_utils.c:21: uint64_t duration_msecs =
(end - start) / 1000000U;  /* Nanoseconds ->
On 2010/02/12 19:14:45, petkov wrote:
> This is still uint64_t but the function returns uint32_t. Don't you get a
> compile-time warning for the implicit type conversion? I like -Wall -Werror,
in
> general.

There's no warning because it's C. C++ would need an explicit type cast. In any
case, I have added an explicit type-cast.

Powered by Google App Engine
This is Rietveld 408576698