Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(24)

Issue 7234055: code review 7234055: crypto/rc4: add simple amd64 asm implementation. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by agl1
Modified:
11 years, 2 months ago
Reviewers:
CC:
rsc, remyoudompheng, golang-dev, jgc
Visibility:
Public.

Description

crypto/rc4: add simple amd64 asm implementation. (Although it's still half the speed of OpenSSL.) benchmark old ns/op new ns/op delta BenchmarkRC4_128 1409 398 -71.75% BenchmarkRC4_1K 10920 2898 -73.46% BenchmarkRC4_8K 131323 23083 -82.42% benchmark old MB/s new MB/s speedup BenchmarkRC4_128 90.83 321.43 3.54x BenchmarkRC4_1K 93.77 353.28 3.77x BenchmarkRC4_8K 61.65 350.73 5.69x

Patch Set 1 #

Patch Set 2 : diff -r 74ba903952d9 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 74ba903952d9 https://code.google.com/p/go/ #

Patch Set 4 : diff -r 74ba903952d9 https://code.google.com/p/go/ #

Total comments: 6

Patch Set 5 : diff -r 4346c244291a https://code.google.com/p/go/ #

Patch Set 6 : diff -r 4346c244291a https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -12 lines) Patch
M src/pkg/crypto/rc4/rc4.go View 1 1 chunk +0 lines, -11 lines 0 comments Download
A src/pkg/crypto/rc4/rc4_amd64.s View 1 2 3 4 5 1 chunk +53 lines, -0 lines 0 comments Download
A src/pkg/crypto/rc4/rc4_asm.go View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
A src/pkg/crypto/rc4/rc4_ref.go View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download
M src/pkg/crypto/rc4/rc4_test.go View 1 2 chunks +59 lines, -1 line 0 comments Download

Messages

Total messages: 6
agl1
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com, jgrahamc@gmail.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 2 months ago (2013-01-29 21:52:45 UTC) #1
rsc
LGTM https://codereview.appspot.com/7234055/diff/5006/src/pkg/crypto/rc4/rc4_amd64.go File src/pkg/crypto/rc4/rc4_amd64.go (right): https://codereview.appspot.com/7234055/diff/5006/src/pkg/crypto/rc4/rc4_amd64.go#newcode1 src/pkg/crypto/rc4/rc4_amd64.go:1: // Copyright 2013 The Go Authors. All rights ...
11 years, 2 months ago (2013-01-29 22:05:31 UTC) #2
remyoudompheng
Can you benchmark against the following simple improvement? It gives a large boost here, and ...
11 years, 2 months ago (2013-01-29 22:19:01 UTC) #3
agl1
On Tue, Jan 29, 2013 at 5:19 PM, <remyoudompheng@gmail.com> wrote: > Can you benchmark against ...
11 years, 2 months ago (2013-01-29 22:22:32 UTC) #4
agl1
https://codereview.appspot.com/7234055/diff/5006/src/pkg/crypto/rc4/rc4_amd64.go File src/pkg/crypto/rc4/rc4_amd64.go (right): https://codereview.appspot.com/7234055/diff/5006/src/pkg/crypto/rc4/rc4_amd64.go#newcode1 src/pkg/crypto/rc4/rc4_amd64.go:1: // Copyright 2013 The Go Authors. All rights reserved. ...
11 years, 2 months ago (2013-01-29 22:23:31 UTC) #5
agl1
11 years, 2 months ago (2013-01-30 16:01:28 UTC) #6
*** Submitted as https://code.google.com/p/go/source/detail?r=3bd3cbecadd8 ***

crypto/rc4: add simple amd64 asm implementation.

(Although it's still half the speed of OpenSSL.)

benchmark           old ns/op    new ns/op    delta
BenchmarkRC4_128         1409          398  -71.75%
BenchmarkRC4_1K         10920         2898  -73.46%
BenchmarkRC4_8K        131323        23083  -82.42%

benchmark            old MB/s     new MB/s  speedup
BenchmarkRC4_128        90.83       321.43    3.54x
BenchmarkRC4_1K         93.77       353.28    3.77x
BenchmarkRC4_8K         61.65       350.73    5.69x

R=rsc, remyoudompheng
CC=golang-dev, jgrahamc
https://codereview.appspot.com/7234055
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b