Skip to content

Commit 0de1f35

Browse files
committed
Update benchmark result
1 parent 7578c2a commit 0de1f35

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- Ability to copy inherited fields from embedded structs
1414
- Ability to set a destination struct field as `nil` if it is `zero`
1515
- Ability to copy unexported struct fields
16-
- Ability to configure extra copying behaviors
16+
- Ability to copy with extra configuration settings
1717

1818
## Installation
1919

@@ -358,25 +358,26 @@ convenient when you don't want to send something like a date of `0001-01-01` to
358358

359359
### Go-DeepCopy vs ManualCopy vs JinzhuCopier vs Deepcopier
360360

361-
This benchmark is done on go-deepcopy v1.5.0.
361+
This benchmark is done on go-deepcopy v1.6.0.
362362

363363
[Benchmark code](https://gist.github.com/tiendc/0a739fd880b9aac5373de95458d54808)
364364

365365
```
366+
BenchmarkCopy
366367
BenchmarkCopy/Go-DeepCopy
367-
BenchmarkCopy/Go-DeepCopy-10 1674967 703.8 ns/op
368+
BenchmarkCopy/Go-DeepCopy-10 1685755 706.5 ns/op 344 B/op 4 allocs/op
368369
BenchmarkCopy/ManualCopy
369-
BenchmarkCopy/ManualCopy-10 29601216 41.22 ns/op
370-
BenchmarkCopy/jinzhu/copier
371-
BenchmarkCopy/jinzhu/copier-10 134443 8895 ns/op
370+
BenchmarkCopy/ManualCopy-10 28962333 41.10 ns/op 80 B/op 1 allocs/op
371+
BenchmarkCopy/JinzhuCopier
372+
BenchmarkCopy/JinzhuCopier-10 135469 8947 ns/op 1296 B/op 88 allocs/op
372373
BenchmarkCopy/ulule/deepcopier
373-
BenchmarkCopy/ulule/deepcopier-10 40231 29675 ns/op
374+
BenchmarkCopy/ulule/deepcopier-10 40062 29720 ns/op 52480 B/op 766 allocs/op
374375
BenchmarkCopy/mohae/deepcopy
375-
BenchmarkCopy/mohae/deepcopy-10 503226 2204 ns/op
376+
BenchmarkCopy/mohae/deepcopy-10 505458 2194 ns/op 1512 B/op 72 allocs/op
376377
BenchmarkCopy/barkimedes/deepcopy
377-
BenchmarkCopy/barkimedes/deepcopy-10 465763 2424 ns/op
378+
BenchmarkCopy/barkimedes/deepcopy-10 511608 2380 ns/op 1704 B/op 45 allocs/op
378379
BenchmarkCopy/mitchellh/copystructure
379-
BenchmarkCopy/mitchellh/copystructure-10 101506 11316 ns/op
380+
BenchmarkCopy/mitchellh/copystructure-10 104089 11430 ns/op 8136 B/op 251 allocs/op
380381
```
381382

382383
## Contributing

0 commit comments

Comments
 (0)