Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • G go
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • go
  • Repository

Switch branch/tag
  • go
  • src
  • math
  • big
  • arith_amd64.s
Find file BlameHistoryPermalink
  • Vlad Krasnov's avatar
    math/big: Simple Montgomery Multiplication to accelerate Mod-Exp · 92796849
    Vlad Krasnov authored Apr 22, 2015
    On Haswell I measure anywhere between 2X to 3.5X speedup for RSA.
    I believe other architectures will also greatly improve.
    In the future may be upgraded by dedicated assembly routine.
    
    Built-in benchmarks i5-4278U turbo off:
    
    benchmark                         old ns/op     new ns/op     delta
    BenchmarkRSA2048Decrypt           6696649       3073769       -54.10%
    Benchmark3PrimeRSA2048Decrypt     4472340       1669080       -62.68%
    
    Change-Id: I17df84f85e34208f990665f9f90ea671695b2add
    Reviewed-on: https://go-review.googlesource.com/9253
    
    Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
    Reviewed-by: default avatarAdam Langley <agl@golang.org>
    Reviewed-by: default avatarVlad Krasnov <vlad@cloudflare.com>
    Run-TryBot: Adam Langley <agl@golang.org>
    92796849

Replace arith_amd64.s

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7