[ARVADOS] updated: 2.1.0-1359-g70d89a76d

Git user git at public.arvados.org
Tue Sep 21 15:02:06 UTC 2021


Summary of changes:
 sdk/go/arvados/blob_signature_test.go | 11 +++++++++++
 1 file changed, 11 insertions(+)

       via  70d89a76d391aa2272d1505a654a0d1e61450a4d (commit)
      from  01e2aa185d373357bad711d916ff10103c48a89a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 70d89a76d391aa2272d1505a654a0d1e61450a4d
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date:   Tue Sep 21 12:01:43 2021 -0300

    18051: Adds SignManifest benchmarking test.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>

diff --git a/sdk/go/arvados/blob_signature_test.go b/sdk/go/arvados/blob_signature_test.go
index 847f9a8ae..d23a18ac7 100644
--- a/sdk/go/arvados/blob_signature_test.go
+++ b/sdk/go/arvados/blob_signature_test.go
@@ -32,6 +32,17 @@ var _ = check.Suite(&BlobSignatureSuite{})
 
 type BlobSignatureSuite struct{}
 
+func (s *BlobSignatureSuite) BenchmarkSignManifest(c *check.C) {
+	DebugLocksPanicMode = false
+	ts, err := parseHexTimestamp(knownTimestamp)
+	c.Check(err, check.IsNil)
+	c.Logf("test manifest is %d bytes", len(bigmanifest))
+	for i := 0; i < c.N; i++ {
+		m := SignManifest(bigmanifest, knownToken, ts, blobSignatureTTL, []byte(knownKey))
+		c.Check(m, check.Not(check.Equals), "")
+	}
+}
+
 func (s *BlobSignatureSuite) TestSignLocator(c *check.C) {
 	ts, err := parseHexTimestamp(knownTimestamp)
 	c.Check(err, check.IsNil)

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list