@@ -334,56 +334,56 @@ func UserStructLevelValidation(sl validator.StructLevel) {
334334
335335Benchmarks
336336------
337- ###### Run on MacBook Pro (Retina, 15-inch, Late 2013) 2.6 GHz Intel Core i7 16 GB 1600 MHz DDR3 using Go version go1.6.3 darwin/amd64
337+ ###### Run on MacBook Pro (Retina, 15-inch, Late 2013) 2.6 GHz Intel Core i7 16 GB 1600 MHz DDR3 using Go version go1.7 darwin/amd64
338338``` go
339- BenchmarkFieldSuccess-8 10000000 147 ns/op 0 B /op 0 allocs/op
340- BenchmarkFieldSuccessParallel-8 30000000 42.5 ns/op 0 B /op 0 allocs/op
341- BenchmarkFieldFailure-8 3000000 417 ns/op 192 B /op 4 allocs/op
342- BenchmarkFieldFailureParallel-8 10000000 140 ns/op 192 B /op 4 allocs/op
343- BenchmarkFieldDiveSuccess-8 2000000 876 ns/op 201 B /op 11 allocs/op
344- BenchmarkFieldDiveSuccessParallel-8 5000000 277 ns/op 201 B /op 11 allocs/op
345- BenchmarkFieldDiveFailure-8 1000000 1185 ns/op 396 B /op 16 allocs/op
346- BenchmarkFieldDiveFailureParallel-8 3000000 402 ns/op 397 B /op 16 allocs/op
347- BenchmarkFieldCustomTypeSuccess-8 5000000 321 ns/op 32 B /op 2 allocs/op
348- BenchmarkFieldCustomTypeSuccessParallel-8 20000000 104 ns/op 32 B /op 2 allocs/op
349- BenchmarkFieldCustomTypeFailure-8 3000000 416 ns/op 192 B /op 4 allocs/op
350- BenchmarkFieldCustomTypeFailureParallel-8 10000000 150 ns/op 192 B /op 4 allocs/op
351- BenchmarkFieldOrTagSuccess-8 1000000 1119 ns/op 16 B /op 1 allocs/op
352- BenchmarkFieldOrTagSuccessParallel-8 3000000 462 ns/op 16 B /op 1 allocs/op
353- BenchmarkFieldOrTagFailure-8 2000000 715 ns/op 208 B /op 5 allocs/op
354- BenchmarkFieldOrTagFailureParallel-8 3000000 436 ns/op 208 B /op 5 allocs/op
355- BenchmarkStructLevelValidationSuccess-8 3000000 399 ns/op 32 B /op 2 allocs/op
356- BenchmarkStructLevelValidationSuccessParallel-8 20000000 140 ns/op 32 B /op 2 allocs/op
357- BenchmarkStructLevelValidationFailure-8 2000000 749 ns/op 288 B /op 8 allocs/op
358- BenchmarkStructLevelValidationFailureParallel-8 5000000 296 ns/op 288 B /op 8 allocs/op
359- BenchmarkStructSimpleCustomTypeSuccess-8 2000000 673 ns/op 32 B /op 2 allocs/op
360- BenchmarkStructSimpleCustomTypeSuccessParallel-8 10000000 213 ns/op 32 B /op 2 allocs/op
361- BenchmarkStructSimpleCustomTypeFailure-8 1000000 1056 ns/op 392 B /op 9 allocs/op
362- BenchmarkStructSimpleCustomTypeFailureParallel-8 3000000 450 ns/op 408 B /op 10 allocs/op
363- BenchmarkStructPartialSuccess-8 2000000 789 ns/op 256 B /op 6 allocs/op
364- BenchmarkStructPartialSuccessParallel-8 5000000 307 ns/op 256 B /op 6 allocs/op
365- BenchmarkStructPartialFailure-8 1000000 1105 ns/op 464 B /op 11 allocs/op
366- BenchmarkStructPartialFailureParallel-8 5000000 493 ns/op 464 B /op 11 allocs/op
367- BenchmarkStructExceptSuccess-8 1000000 1212 ns/op 480 B /op 12 allocs/op
368- BenchmarkStructExceptSuccessParallel-8 10000000 282 ns/op 240 B /op 5 allocs/op
369- BenchmarkStructExceptFailure-8 1000000 1004 ns/op 448 B /op 10 allocs/op
370- BenchmarkStructExceptFailureParallel-8 5000000 452 ns/op 448 B /op 10 allocs/op
371- BenchmarkStructSimpleCrossFieldSuccess-8 2000000 656 ns/op 72 B /op 3 allocs/op
372- BenchmarkStructSimpleCrossFieldSuccessParallel-8 5000000 211 ns/op 72 B /op 3 allocs/op
373- BenchmarkStructSimpleCrossFieldFailure-8 2000000 968 ns/op 288 B /op 8 allocs/op
374- BenchmarkStructSimpleCrossFieldFailureParallel-8 5000000 406 ns/op 288 B /op 8 allocs/op
375- BenchmarkStructSimpleCrossStructCrossFieldSuccess-8 1000000 1000 ns/op 80 B /op 4 allocs/op
376- BenchmarkStructSimpleCrossStructCrossFieldSuccessParallel-8 5000000 334 ns/op 80 B /op 4 allocs/op
377- BenchmarkStructSimpleCrossStructCrossFieldFailure-8 1000000 1324 ns/op 304 B /op 9 allocs/op
378- BenchmarkStructSimpleCrossStructCrossFieldFailureParallel-8 3000000 520 ns/op 304 B /op 9 allocs/op
379- BenchmarkStructSimpleSuccess-8 3000000 534 ns/op 0 B /op 0 allocs/op
380- BenchmarkStructSimpleSuccessParallel-8 10000000 144 ns/op 0 B /op 0 allocs/op
381- BenchmarkStructSimpleFailure-8 1000000 1039 ns/op 392 B /op 9 allocs/op
382- BenchmarkStructSimpleFailureParallel-8 5000000 419 ns/op 392 B /op 9 allocs/op
383- BenchmarkStructComplexSuccess-8 500000 2678 ns/op 128 B /op 8 allocs/op
384- BenchmarkStructComplexSuccessParallel-8 2000000 874 ns/op 128 B /op 8 allocs/op
385- BenchmarkStructComplexFailure-8 200000 6342 ns/op 2833 B /op 53 allocs/op
386- BenchmarkStructComplexFailureParallel-8 1000000 2875 ns/op 2833 B /op 53 allocs/op
339+ BenchmarkFieldSuccess-8 20000000 108 ns/op 0 B /op 0 allocs/op
340+ BenchmarkFieldSuccessParallel-8 50000000 35.7 ns/op 0 B /op 0 allocs/op
341+ BenchmarkFieldFailure-8 5000000 320 ns/op 192 B /op 4 allocs/op
342+ BenchmarkFieldFailureParallel-8 20000000 113 ns/op 192 B /op 4 allocs/op
343+ BenchmarkFieldDiveSuccess-8 2000000 726 ns/op 201 B /op 11 allocs/op
344+ BenchmarkFieldDiveSuccessParallel-8 10000000 263 ns/op 201 B /op 11 allocs/op
345+ BenchmarkFieldDiveFailure-8 2000000 939 ns/op 396 B /op 16 allocs/op
346+ BenchmarkFieldDiveFailureParallel-8 5000000 382 ns/op 397 B /op 16 allocs/op
347+ BenchmarkFieldCustomTypeSuccess-8 5000000 268 ns/op 32 B /op 2 allocs/op
348+ BenchmarkFieldCustomTypeSuccessParallel-8 20000000 87.8 ns/op 32 B /op 2 allocs/op
349+ BenchmarkFieldCustomTypeFailure-8 5000000 310 ns/op 192 B /op 4 allocs/op
350+ BenchmarkFieldCustomTypeFailureParallel-8 20000000 131 ns/op 192 B /op 4 allocs/op
351+ BenchmarkFieldOrTagSuccess-8 2000000 889 ns/op 16 B /op 1 allocs/op
352+ BenchmarkFieldOrTagSuccessParallel-8 5000000 418 ns/op 16 B /op 1 allocs/op
353+ BenchmarkFieldOrTagFailure-8 3000000 546 ns/op 208 B /op 5 allocs/op
354+ BenchmarkFieldOrTagFailureParallel-8 3000000 450 ns/op 208 B /op 5 allocs/op
355+ BenchmarkStructLevelValidationSuccess-8 5000000 336 ns/op 32 B /op 2 allocs/op
356+ BenchmarkStructLevelValidationSuccessParallel-8 20000000 123 ns/op 32 B /op 2 allocs/op
357+ BenchmarkStructLevelValidationFailure-8 2000000 611 ns/op 288 B /op 8 allocs/op
358+ BenchmarkStructLevelValidationFailureParallel-8 5000000 298 ns/op 288 B /op 8 allocs/op
359+ BenchmarkStructSimpleCustomTypeSuccess-8 2000000 555 ns/op 32 B /op 2 allocs/op
360+ BenchmarkStructSimpleCustomTypeSuccessParallel-8 10000000 197 ns/op 32 B /op 2 allocs/op
361+ BenchmarkStructSimpleCustomTypeFailure-8 2000000 811 ns/op 392 B /op 9 allocs/op
362+ BenchmarkStructSimpleCustomTypeFailureParallel-8 5000000 370 ns/op 408 B /op 10 allocs/op
363+ BenchmarkStructPartialSuccess-8 2000000 676 ns/op 256 B /op 6 allocs/op
364+ BenchmarkStructPartialSuccessParallel-8 5000000 301 ns/op 256 B /op 6 allocs/op
365+ BenchmarkStructPartialFailure-8 1000000 1001 ns/op 464 B /op 11 allocs/op
366+ BenchmarkStructPartialFailureParallel-8 3000000 436 ns/op 464 B /op 11 allocs/op
367+ BenchmarkStructExceptSuccess-8 1000000 1038 ns/op 480 B /op 12 allocs/op
368+ BenchmarkStructExceptSuccessParallel-8 10000000 281 ns/op 240 B /op 5 allocs/op
369+ BenchmarkStructExceptFailure-8 2000000 863 ns/op 448 B /op 10 allocs/op
370+ BenchmarkStructExceptFailureParallel-8 3000000 379 ns/op 448 B /op 10 allocs/op
371+ BenchmarkStructSimpleCrossFieldSuccess-8 3000000 549 ns/op 72 B /op 3 allocs/op
372+ BenchmarkStructSimpleCrossFieldSuccessParallel-8 10000000 192 ns/op 72 B /op 3 allocs/op
373+ BenchmarkStructSimpleCrossFieldFailure-8 2000000 783 ns/op 288 B /op 8 allocs/op
374+ BenchmarkStructSimpleCrossFieldFailureParallel-8 5000000 296 ns/op 288 B /op 8 allocs/op
375+ BenchmarkStructSimpleCrossStructCrossFieldSuccess-8 2000000 837 ns/op 80 B /op 4 allocs/op
376+ BenchmarkStructSimpleCrossStructCrossFieldSuccessParallel-8 5000000 284 ns/op 80 B /op 4 allocs/op
377+ BenchmarkStructSimpleCrossStructCrossFieldFailure-8 1000000 1110 ns/op 304 B /op 9 allocs/op
378+ BenchmarkStructSimpleCrossStructCrossFieldFailureParallel-8 3000000 416 ns/op 304 B /op 9 allocs/op
379+ BenchmarkStructSimpleSuccess-8 5000000 380 ns/op 0 B /op 0 allocs/op
380+ BenchmarkStructSimpleSuccessParallel-8 20000000 114 ns/op 0 B /op 0 allocs/op
381+ BenchmarkStructSimpleFailure-8 2000000 760 ns/op 392 B /op 9 allocs/op
382+ BenchmarkStructSimpleFailureParallel-8 5000000 353 ns/op 392 B /op 9 allocs/op
383+ BenchmarkStructComplexSuccess-8 1000000 2100 ns/op 128 B /op 8 allocs/op
384+ BenchmarkStructComplexSuccessParallel-8 2000000 662 ns/op 128 B /op 8 allocs/op
385+ BenchmarkStructComplexFailure-8 200000 5080 ns/op 2833 B /op 53 allocs/op
386+ BenchmarkStructComplexFailureParallel-8 1000000 2159 ns/op 2833 B /op 53 allocs/op
387387```
388388
389389Complimentary Software
0 commit comments