Changkun Ou
762af9dda2
optimize AtomicError (#82)
This commit optimize AtomicError using atomic.Value. Benchmarks:
name old time/op new time/op delta
AtomicError/Load-6 305ns ±11% 12ns ± 6% -96.18% (p=0.000 n=10+10)
AtomicError/Set-6 314ns ±16% 14ns ± 2% -95.61% (p=0.000 n=10+9)
2020-09-18 22:45:01 +08:00
..
2020-08-08 16:40:10 +08:00
2020-09-16 20:03:30 +08:00
2020-07-26 17:09:05 +08:00
2020-08-08 16:40:10 +08:00
2020-08-21 23:15:45 +08:00
2020-08-08 16:40:10 +08:00
2020-08-16 22:32:56 +08:00
2020-08-25 16:32:01 +08:00
2020-09-18 22:45:01 +08:00
2020-08-16 22:32:56 +08:00
2020-08-20 10:46:39 +08:00
2020-08-08 16:40:10 +08:00
2020-08-16 22:32:56 +08:00
2020-08-08 16:40:10 +08:00
2020-08-08 16:40:10 +08:00
2020-07-26 17:09:05 +08:00
2020-07-26 17:09:05 +08:00
2020-08-14 15:08:06 +08:00
2020-08-08 16:40:10 +08:00
2020-08-08 16:40:10 +08:00
2020-08-25 16:59:14 +08:00
2020-08-08 16:40:10 +08:00
2020-08-08 16:40:10 +08:00
2020-08-08 16:40:10 +08:00
2020-09-16 20:03:30 +08:00
2020-07-26 17:09:05 +08:00
2020-07-26 17:09:05 +08:00
2020-09-14 21:13:19 +08:00
2020-08-08 16:40:10 +08:00
2020-08-08 16:40:10 +08:00
2020-08-16 23:08:29 +08:00
2020-08-08 16:40:10 +08:00
2020-08-12 15:03:07 +08:00
2020-08-08 16:40:10 +08:00
2020-08-27 13:22:44 +08:00
2020-09-03 16:58:31 +08:00
2020-08-19 16:00:55 +08:00
2020-08-10 14:53:01 +08:00
2020-08-14 15:08:06 +08:00
2020-08-08 16:40:10 +08:00
2020-08-08 16:40:10 +08:00
2020-08-08 16:40:10 +08:00
2020-08-17 18:05:56 +08:00