BENCHMARKS.md 11 KB

go test -bench=. -benchmem goos: darwin goarch: amd64 pkg: github.com/brianvoe/gofakeit Table generated with tablesgenerator.com/markdown_tables

Benchmark Ops CPU MEM MEM alloc
BenchmarkAddress-4 1000000 1998 ns/op 248 B/op 7 allocs/op
BenchmarkStreet-4 1000000 1278 ns/op 62 B/op 3 allocs/op
BenchmarkStreetNumber-4 5000000 344 ns/op 36 B/op 2 allocs/op
BenchmarkStreetPrefix-4 10000000 121 ns/op 0 B/op 0 allocs/op
BenchmarkStreetName-4 10000000 122 ns/op 0 B/op 0 allocs/op
BenchmarkStreetSuffix-4 10000000 122 ns/op 0 B/op 0 allocs/op
BenchmarkCity-4 5000000 326 ns/op 15 B/op 1 allocs/op
BenchmarkState-4 10000000 120 ns/op 0 B/op 0 allocs/op
BenchmarkStateAbr-4 10000000 122 ns/op 0 B/op 0 allocs/op
BenchmarkZip-4 5000000 315 ns/op 5 B/op 1 allocs/op
BenchmarkCountry-4 10000000 126 ns/op 0 B/op 0 allocs/op
BenchmarkCountryAbr-4 10000000 123 ns/op 0 B/op 0 allocs/op
BenchmarkLatitude-4 100000000 23.6 ns/op 0 B/op 0 allocs/op
BenchmarkLongitude-4 100000000 23.6 ns/op 0 B/op 0 allocs/op
BenchmarkLatitudeInRange-4 50000000 27.7 ns/op 0 B/op 0 allocs/op
BenchmarkLongitudeInRange-4 50000000 27.8 ns/op 0 B/op 0 allocs/op
BenchmarkBeerName-4 20000000 104 ns/op 0 B/op 0 allocs/op
BenchmarkBeerStyle-4 10000000 119 ns/op 0 B/op 0 allocs/op
BenchmarkBeerHop-4 20000000 105 ns/op 0 B/op 0 allocs/op
BenchmarkBeerYeast-4 20000000 106 ns/op 0 B/op 0 allocs/op
BenchmarkBeerMalt-4 20000000 114 ns/op 0 B/op 0 allocs/op
BenchmarkBeerIbu-4 20000000 71.0 ns/op 8 B/op 1 allocs/op
BenchmarkBeerAlcohol-4 5000000 335 ns/op 40 B/op 3 allocs/op
BenchmarkBeerBlg-4 5000000 338 ns/op 48 B/op 3 allocs/op
BenchmarkBool-4 50000000 34.2 ns/op 0 B/op 0 allocs/op
BenchmarkColor-4 20000000 112 ns/op 0 B/op 0 allocs/op
BenchmarkSafeColor-4 20000000 102 ns/op 0 B/op 0 allocs/op
BenchmarkHexColor-4 3000000 491 ns/op 24 B/op 3 allocs/op
BenchmarkRGBColor-4 20000000 103 ns/op 32 B/op 1 allocs/op
BenchmarkCompany-4 5000000 353 ns/op 22 B/op 1 allocs/op
BenchmarkCompanySuffix-4 20000000 89.6 ns/op 0 B/op 0 allocs/op
BenchmarkBuzzWord-4 20000000 99.0 ns/op 0 B/op 0 allocs/op
BenchmarkBS-4 20000000 100 ns/op 0 B/op 0 allocs/op
BenchmarkContact-4 1000000 1121 ns/op 178 B/op 7 allocs/op
BenchmarkPhone-4 5000000 346 ns/op 16 B/op 1 allocs/op
BenchmarkPhoneFormatted-4 3000000 456 ns/op 16 B/op 1 allocs/op
BenchmarkEmail-4 2000000 715 ns/op 130 B/op 5 allocs/op
BenchmarkCurrency-4 10000000 125 ns/op 32 B/op 1 allocs/op
BenchmarkCurrencyShort-4 20000000 104 ns/op 0 B/op 0 allocs/op
BenchmarkCurrencyLong-4 20000000 105 ns/op 0 B/op 0 allocs/op
BenchmarkPrice-4 50000000 27.2 ns/op 0 B/op 0 allocs/op
BenchmarkDate-4 5000000 371 ns/op 0 B/op 0 allocs/op
BenchmarkDateRange-4 10000000 238 ns/op 0 B/op 0 allocs/op
BenchmarkMonth-4 30000000 44.6 ns/op 0 B/op 0 allocs/op
BenchmarkDay-4 50000000 39.2 ns/op 0 B/op 0 allocs/op
BenchmarkWeekDay-4 30000000 44.7 ns/op 0 B/op 0 allocs/op
BenchmarkYear-4 20000000 115 ns/op 0 B/op 0 allocs/op
BenchmarkHour-4 30000000 39.9 ns/op 0 B/op 0 allocs/op
BenchmarkMinute-4 50000000 40.4 ns/op 0 B/op 0 allocs/op
BenchmarkSecond-4 30000000 40.6 ns/op 0 B/op 0 allocs/op
BenchmarkNanoSecond-4 30000000 42.2 ns/op 0 B/op 0 allocs/op
BenchmarkTimeZone-4 20000000 105 ns/op 0 B/op 0 allocs/op
BenchmarkTimeZoneFull-4 20000000 118 ns/op 0 B/op 0 allocs/op
BenchmarkTimeZoneAbv-4 20000000 105 ns/op 0 B/op 0 allocs/op
BenchmarkTimeZoneOffset-4 10000000 147 ns/op 0 B/op 0 allocs/op
BenchmarkMimeType-4 20000000 99.9 ns/op 0 B/op 0 allocs/op
BenchmarkExtension-4 20000000 109 ns/op 0 B/op 0 allocs/op
BenchmarkGenerate-4 1000000 1588 ns/op 414 B/op 11 allocs/op
BenchmarkHackerPhrase-4 300000 4576 ns/op 2295 B/op 26 allocs/op
BenchmarkHackerAbbreviation-4 20000000 101 ns/op 0 B/op 0 allocs/op
BenchmarkHackerAdjective-4 20000000 101 ns/op 0 B/op 0 allocs/op
BenchmarkHackerNoun-4 20000000 104 ns/op 0 B/op 0 allocs/op
BenchmarkHackerVerb-4 20000000 113 ns/op 0 B/op 0 allocs/op
BenchmarkHackerIngverb-4 20000000 98.6 ns/op 0 B/op 0 allocs/op
BenchmarkHipsterWord-4 20000000 100 ns/op 0 B/op 0 allocs/op
BenchmarkHipsterSentence-4 1000000 1636 ns/op 353 B/op 3 allocs/op
BenchmarkHipsterParagraph-4 50000 31677 ns/op 12351 B/op 64 allocs/op
BenchmarkImageURL-4 20000000 108 ns/op 38 B/op 3 allocs/op
BenchmarkDomainName-4 3000000 491 ns/op 76 B/op 3 allocs/op
BenchmarkDomainSuffix-4 20000000 99.4 ns/op 0 B/op 0 allocs/op
BenchmarkURL-4 1000000 1201 ns/op 278 B/op 8 allocs/op
BenchmarkHTTPMethod-4 20000000 100 ns/op 0 B/op 0 allocs/op
BenchmarkIPv4Address-4 3000000 407 ns/op 48 B/op 5 allocs/op
BenchmarkIPv6Address-4 3000000 552 ns/op 96 B/op 7 allocs/op
BenchmarkUsername-4 5000000 307 ns/op 16 B/op 2 allocs/op
BenchmarkJob-4 2000000 726 ns/op 86 B/op 2 allocs/op
BenchmarkJobTitle-4 20000000 98.7 ns/op 0 B/op 0 allocs/op
BenchmarkJobDescriptor-4 20000000 98.9 ns/op 0 B/op 0 allocs/op
BenchmarkJobLevel-4 20000000 110 ns/op 0 B/op 0 allocs/op
BenchmarkLogLevel-4 20000000 107 ns/op 0 B/op 0 allocs/op
BenchmarkReplaceWithNumbers-4 3000000 570 ns/op 32 B/op 1 allocs/op
BenchmarkName-4 5000000 285 ns/op 17 B/op 1 allocs/op
BenchmarkFirstName-4 20000000 102 ns/op 0 B/op 0 allocs/op
BenchmarkLastName-4 20000000 100 ns/op 0 B/op 0 allocs/op
BenchmarkNamePrefix-4 20000000 98.0 ns/op 0 B/op 0 allocs/op
BenchmarkNameSuffix-4 20000000 109 ns/op 0 B/op 0 allocs/op
BenchmarkNumber-4 50000000 34.5 ns/op 0 B/op 0 allocs/op
BenchmarkUint8-4 50000000 28.5 ns/op 0 B/op 0 allocs/op
BenchmarkUint16-4 50000000 28.5 ns/op 0 B/op 0 allocs/op
BenchmarkUint32-4 50000000 27.0 ns/op 0 B/op 0 allocs/op
BenchmarkUint64-4 50000000 34.6 ns/op 0 B/op 0 allocs/op
BenchmarkInt8-4 50000000 28.5 ns/op 0 B/op 0 allocs/op
BenchmarkInt16-4 50000000 28.4 ns/op 0 B/op 0 allocs/op
BenchmarkInt32-4 50000000 27.0 ns/op 0 B/op 0 allocs/op
BenchmarkInt64-4 50000000 34.9 ns/op 0 B/op 0 allocs/op
BenchmarkFloat32-4 50000000 27.7 ns/op 0 B/op 0 allocs/op
BenchmarkFloat32Range-4 50000000 27.9 ns/op 0 B/op 0 allocs/op
BenchmarkFloat64-4 50000000 25.9 ns/op 0 B/op 0 allocs/op
BenchmarkFloat64Range-4 50000000 26.5 ns/op 0 B/op 0 allocs/op
BenchmarkNumerify-4 5000000 354 ns/op 16 B/op 1 allocs/op
BenchmarkShuffleInts-4 10000000 226 ns/op 0 B/op 0 allocs/op
BenchmarkPassword-4 2000000 655 ns/op 304 B/op 6 allocs/op
BenchmarkCreditCard-4 2000000 997 ns/op 88 B/op 4 allocs/op
BenchmarkCreditCardType-4 20000000 92.7 ns/op 0 B/op 0 allocs/op
BenchmarkCreditCardNumber-4 3000000 572 ns/op 16 B/op 1 allocs/op
BenchmarkCreditCardNumberLuhn-4 300000 5815 ns/op 159 B/op 9 allocs/op
BenchmarkCreditCardExp-4 10000000 129 ns/op 5 B/op 1 allocs/op
BenchmarkCreditCardCvv-4 10000000 128 ns/op 3 B/op 1 allocs/op
BenchmarkSSN-4 20000000 84.2 ns/op 16 B/op 1 allocs/op
BenchmarkGender-4 50000000 38.0 ns/op 0 B/op 0 allocs/op
BenchmarkPerson-4 300000 5563 ns/op 805 B/op 26 allocs/op
BenchmarkSimpleStatusCode-4 20000000 72.9 ns/op 0 B/op 0 allocs/op
BenchmarkStatusCode-4 20000000 75.8 ns/op 0 B/op 0 allocs/op
BenchmarkLetter-4 50000000 38.4 ns/op 0 B/op 0 allocs/op
BenchmarkDigit-4 50000000 38.2 ns/op 0 B/op 0 allocs/op
BenchmarkLexify-4 10000000 222 ns/op 8 B/op 1 allocs/op
BenchmarkShuffleStrings-4 10000000 197 ns/op 0 B/op 0 allocs/op
BenchmarkUUID-4 20000000 106 ns/op 48 B/op 1 allocs/op
BenchmarkUserAgent-4 1000000 1236 ns/op 305 B/op 5 allocs/op
BenchmarkChromeUserAgent-4 2000000 881 ns/op 188 B/op 5 allocs/op
BenchmarkFirefoxUserAgent-4 1000000 1595 ns/op 386 B/op 7 allocs/op
BenchmarkSafariUserAgent-4 1000000 1396 ns/op 551 B/op 7 allocs/op
BenchmarkOperaUserAgent-4 2000000 950 ns/op 216 B/op 5 allocs/op
BenchmarkWord-4 20000000 99.1 ns/op 0 B/op 0 allocs/op
BenchmarkSentence-4 1000000 1540 ns/op 277 B/op 2 allocs/op
BenchmarkParagraph-4 50000 30978 ns/op 11006 B/op 61 allocs/op