Giter Site home page Giter Site logo

client: optimize encryption about td HOT 2 CLOSED

gotd avatar gotd commented on May 21, 2024
client: optimize encryption

from td.

Comments (2)

tdakkota avatar tdakkota commented on May 21, 2024 1

I think we're fast enough.

grammers.rs:

test encrypt_b0016  ... bench:         157 ns/iter (+/- 3) = 101 MB/s
test encrypt_b0256  ... bench:         496 ns/iter (+/- 20) = 516 MB/s
test encrypt_b0512  ... bench:         856 ns/iter (+/- 62) = 598 MB/s
test encrypt_b1024  ... bench:       1,636 ns/iter (+/- 6) = 625 MB/s
test encrypt_kb0016 ... bench:      23,062 ns/iter (+/- 425) = 710 MB/s
test encrypt_kb0128 ... bench:     182,503 ns/iter (+/- 5,618) = 718 MB/s
test encrypt_kb0512 ... bench:     748,600 ns/iter (+/- 18,533) = 700 MB/s
gotd:

cpu: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
BenchmarkIGEEncrypt
BenchmarkIGEEncrypt/16b
BenchmarkIGEEncrypt/16b-12           13522802          79.92 ns/op   200.20 MB/s         0 B/op         0 allocs/op
BenchmarkIGEEncrypt/256b
BenchmarkIGEEncrypt/256b-12           3048024         381.1 ns/op   671.66 MB/s         0 B/op         0 allocs/op
BenchmarkIGEEncrypt/512b
BenchmarkIGEEncrypt/512b-12           1725553         691.3 ns/op   740.61 MB/s         0 B/op         0 allocs/op
BenchmarkIGEEncrypt/1024b
BenchmarkIGEEncrypt/1024b-12          1000000        1344 ns/op   761.94 MB/s         0 B/op         0 allocs/op
BenchmarkIGEEncrypt/16384b
BenchmarkIGEEncrypt/16384b-12           57978       20085 ns/op   815.71 MB/s         0 B/op         0 allocs/op
BenchmarkIGEEncrypt/131072b
BenchmarkIGEEncrypt/131072b-12           7404      162335 ns/op   807.42 MB/s         0 B/op         0 allocs/op
BenchmarkIGEEncrypt/524288b
BenchmarkIGEEncrypt/524288b-12           1696      648719 ns/op   808.19 MB/s         0 B/op         0 allocs/op
PASS

from td.

stale avatar stale commented on May 21, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from td.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.