greatroar
198028d627
lib/rand: Optimizations (#7964)
rand.secureSource.Uint64 no longer allocates. rand.String uses a
strings.Builder. Benchmark results on linux/amd64:
name old time/op new time/op delta
SecureSource-8 69.1ns ± 3% 51.7ns ± 3% -25.21% (p=0.000 n=20+10)
String-8 2.66µs ± 2% 1.95µs ± 1% -26.61% (p=0.000 n=10+10)
name old alloc/op new alloc/op delta
SecureSource-8 8.00B ± 0% 0.00B -100.00% (p=0.000 n=20+10)
String-8 288B ± 0% 32B ± 0% -88.89% (p=0.000 n=10+10)
name old allocs/op new allocs/op delta
SecureSource-8 1.00 ± 0% 0.00 -100.00% (p=0.000 n=20+10)
String-8 33.0 ± 0% 1.0 ± 0% -96.97% (p=0.000 n=10+10)
2021-09-26 12:15:39 +02:00
..
2021-09-11 17:14:47 +02:00
2020-05-25 08:51:27 +02:00
2021-09-08 00:11:16 +02:00
2021-08-17 10:10:41 +02:00
2021-09-26 12:08:23 +02:00
2021-08-19 21:05:28 +02:00
2021-09-26 12:08:23 +02:00
2021-08-17 10:10:41 +02:00
2021-09-06 15:30:56 +02:00
2021-05-08 12:52:06 +02:00
2021-08-29 10:47:53 +02:00
2021-09-08 00:11:16 +02:00
2021-03-17 23:12:26 +01:00
2021-05-08 12:52:06 +02:00
2021-09-11 17:14:47 +02:00
2020-11-20 14:21:54 +01:00
2021-08-17 10:10:41 +02:00
2020-06-22 09:01:57 +01:00
2021-09-06 15:30:56 +02:00
2021-09-26 12:15:39 +02:00
2020-09-07 09:35:37 +02:00
2021-09-06 15:30:56 +02:00
2021-05-17 12:35:03 +02:00
2021-03-02 19:17:20 +01:00
2021-03-02 19:17:20 +01:00
2021-03-12 10:35:10 +01:00
2021-08-05 00:04:22 +01:00
2021-05-10 22:26:25 +02:00
2019-10-16 10:11:11 +02:00
2021-09-10 09:56:44 +02:00
2021-03-03 08:53:50 +01:00
2021-09-21 08:40:34 +02:00
2021-08-17 10:10:41 +02:00
2021-03-17 23:12:26 +01:00
2021-08-25 07:16:55 +02:00
2021-06-25 11:38:04 +02:00
2021-03-17 23:12:26 +01:00
2021-08-01 12:30:20 +02:00
2020-03-29 17:07:25 +02:00