(b *testing.B)
| 57 | } |
| 58 | |
| 59 | func BenchmarkGenerate(b *testing.B) { |
| 60 | for i := 0; i < b.N; i++ { |
| 61 | // Note that this is using dumbRand under the hood, so it will be |
| 62 | // a lot slower in production. |
| 63 | _, _, err := gitsshkey.Generate(gitsshkey.AlgorithmRSA4096) |
| 64 | if err != nil { |
| 65 | b.Fatal(err) |
| 66 | } |
| 67 | } |
| 68 | } |