MCPcopy Index your code
hub / github.com/coder/coder / BenchmarkGenerate

Function BenchmarkGenerate

coderd/gitsshkey/gitsshkey_test.go:59–68  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

57}
58
59func 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}

Callers

nothing calls this directly

Calls 2

GenerateFunction · 0.92
FatalMethod · 0.80

Tested by

no test coverage detected