Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for BenchmarkSquare (0.15 sec)

  1. src/crypto/internal/edwards25519/field/fe_bench_test.go

    		x.Add(x, y)
    	}
    }
    
    func BenchmarkMultiply(b *testing.B) {
    	x := new(Element).One()
    	y := new(Element).Add(x, x)
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		x.Multiply(x, y)
    	}
    }
    
    func BenchmarkSquare(b *testing.B) {
    	x := new(Element).Add(feOne, feOne)
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		x.Square(x)
    	}
    }
    
    func BenchmarkInvert(b *testing.B) {
    	x := new(Element).Add(feOne, feOne)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 18:45:00 UTC 2022
    - 924 bytes
    - Viewed (0)
  2. src/crypto/internal/nistec/fiat/fiat_test.go

    			v.Mul(v, v)
    		}
    	})
    	b.Run("P521", func(b *testing.B) {
    		v := new(fiat.P521Element).One()
    		b.ReportAllocs()
    		b.ResetTimer()
    		for i := 0; i < b.N; i++ {
    			v.Mul(v, v)
    		}
    	})
    }
    
    func BenchmarkSquare(b *testing.B) {
    	b.Run("P224", func(b *testing.B) {
    		v := new(fiat.P224Element).One()
    		b.ReportAllocs()
    		b.ResetTimer()
    		for i := 0; i < b.N; i++ {
    			v.Square(v)
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 05 21:53:03 UTC 2022
    - 1.2K bytes
    - Viewed (0)
Back to top