Skip to content

Commit

Permalink
feat(benches): introduce benchmarks for internal components (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
NishantJoshi00 authored Jan 29, 2024
1 parent f0d4cc4 commit 8a7bbc3
Show file tree
Hide file tree
Showing 7 changed files with 420 additions and 2 deletions.
217 changes: 217 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ argh = "0.1.12"

[dev-dependencies]
rand = "0.8.5"
criterion = "0.5.1"
axum-test = "14.2.2"

[build-dependencies]
Expand All @@ -83,3 +84,11 @@ name = "utils"
strip = true
lto = true
codegen-units = 1

[[bench]]
name = "luhn-test"
harness = false

[[bench]]
name = "encryption"
harness = false
27 changes: 27 additions & 0 deletions benches/bench-private-key.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEAuZu3oeOJ+KWJfzoTjwPncxKJqKOUmuVbDmFHHBK5l8e8drr7
6QH+Zt2PS477Vl0wIEH246TXUp1VzSCRiAkP/ecNx+29UpOoKTbI+GHfGMJgG7H/
g6epjqpYvAz2BeX1KNptzSh4a5qaggYuQdsWAaZZcxfsBuvv0TvvFbJpsoshOdYY
QzhCpRBVWZlXB83fusAdYS8/lV4diC7vT+erwSaI2tN/GNHFCU+9zXuuJl/NoDUY
xur8HS/2FJf0K83Vq/mFMRNLyYhxpUlrvJHTv3sXwMYAW8fynURH00Ykgw3DFAac
vO+FDZXrzyTTRwBIpMBJ4J1sdPDuqNW07NURwwIDAQABAoIBAHbt0S9ZRgndwAmW
o/uqi75PLYeyMUFDHyJKsK7LTMJ1iEwnqcx2q5Ur+Gp41pFTKsgwnErnT9Uu3VCP
wtCAxg9x4oGt0va7iC/IW+PTiokp2z1Dw66PWvUAL9VnFKlY3Mrtkxe3C9oe+UvB
PBiUkjhCZ+R4epNA0KyoE506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PRIVATE KEY-----
9 changes: 9 additions & 0 deletions benches/bench-public-key.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuZu3oeOJ+KWJfzoTjwPn
cxKJqKOUmuVbDmFHHBK5l8e8drr76QH+Zt2PS477Vl0wIEH246TXUp1VzSCRiAkP
/ecNx+29UpOoKTbI+GHfGMJgG7H/g6epjqpYvAz2BeX1KNptzSh4a5qaggYuQdsW
AaZZcxfsBuvv0TvvFbJpsoshOdYYQzhCpRBVWZlXB83fusAdYS8/lV4diC7vT+er
wSaI2tN/GNHFCU+9zXuuJl/NoDUYxur8HS/2FJf0K83Vq/mFMRNLyYhxpUlrvJHT
v3sXwMYAW8fynURH00Ykgw3DFAacvO+FDZXrzyTTRwBIpMBJ4J1sdPDuqNW07NUR
wwIDAQAB
-----END PUBLIC KEY-----
Loading

0 comments on commit 8a7bbc3

Please sign in to comment.