Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkInvert (0.12 sec)

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

    		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)
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		x.Invert(x)
    	}
    }
    
    func BenchmarkMult32(b *testing.B) {
    	x := new(Element).One()
    	b.ResetTimer()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 18:45:00 UTC 2022
    - 924 bytes
    - Viewed (0)
Back to top