Brad Fitzpatrick
bf9f279768
util/deephash: optimize CPU a bit by by avoiding fmt in more places
name old time/op new time/op delta
Hash-6 179µs ± 5% 173µs ± 4% -3.12% (p=0.004 n=10+10)
HashMapAcyclic-6 115µs ± 3% 101µs ± 5% -11.51% (p=0.000 n=9+9)
TailcfgNode-6 30.8µs ± 4% 29.4µs ± 2% -4.51% (p=0.000 n=10+8)
name old alloc/op new alloc/op delta
Hash-6 3.60kB ± 0% 3.60kB ± 0% ~ (p=0.445 n=9+10)
HashMapAcyclic-6 2.53kB ± 0% 2.53kB ± 0% ~ (p=0.065 n=9+10)
TailcfgNode-6 528B ± 0% 528B ± 0% ~ (all equal)
name old allocs/op new allocs/op delta
Hash-6 84.0 ± 0% 84.0 ± 0% ~ (all equal)
HashMapAcyclic-6 202 ± 0% 202 ± 0% ~ (all equal)
TailcfgNode-6 11.0 ± 0% 11.0 ± 0% ~ (all equal)
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-07-05 21:28:54 -07:00
..
2021-02-10 13:50:18 -08:00
2021-04-23 20:55:45 -07:00
2021-07-05 21:28:54 -07:00
2021-05-31 21:13:50 -07:00
2020-11-17 13:49:24 -08:00
2021-06-10 19:06:05 +05:00
2020-11-19 13:58:35 -08:00
2020-11-19 12:14:58 -08:00
2021-04-23 13:32:33 -07:00
2020-09-11 08:57:10 -07:00
2020-11-16 10:11:53 -08:00
2021-02-27 19:03:16 -08:00
2020-10-02 11:00:56 -07:00
2021-06-30 10:11:33 -07:00