Skip to content
Snippets Groups Projects
Select Git revision
  • 1b4021d0dacaacc8c8670ead0a535c84279cc96b
  • master default protected
  • v1.22.9
  • v1.22.8
  • v1.22.7
  • v1.22.6
  • v1.22.5
  • v1.22.4
  • v1.22.3
  • v1.22.1
  • v1.22.0
  • v1.21.0
  • v1.20.5
  • v1.20.4
  • v1.20.3
  • v1.20.2
  • v1.20.1
  • v1.20.0
  • v1.19.0
  • v1.18.3
  • v1.18.2
  • v1.18.1
22 results

benchmark_test.go

Blame
  • benchmark_test.go 381 B
    // Copyright 2022 schukai GmbH
    // SPDX-License-Identifier: AGPL-3.0
    
    package configuration
    
    import (
    	"bytes"
    	"testing"
    )
    
    func BenchmarkCreateConfig(b *testing.B) {
    	// run the Fib function b.N times
    	for n := 0; n < b.N; n++ {
    		config := ConfigStruct2{
    			A: "1",
    			B: true,
    			F: 2,
    		}
    
    		s := New(config)
    
    		buffer := bytes.NewBufferString("")
    		s.Write(buffer, Yaml)
    	}
    }