Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkParseJWTMapClaims (0.2 sec)

  1. cmd/jwt_test.go

    		for pb.Next() {
    			err = xjwt.ParseWithStandardClaims(token, xjwt.NewStandardClaims(), []byte(creds.SecretKey))
    			if err != nil {
    				b.Fatal(err)
    			}
    		}
    	})
    }
    
    func BenchmarkParseJWTMapClaims(b *testing.B) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	obj, fsDir, err := prepareFS(ctx)
    	if err != nil {
    		b.Fatal(err)
    	}
    	defer os.RemoveAll(fsDir)
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Jul 22 07:04:48 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top