{"push_id":638758464,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"899a4ad47e452ede041fdb99204575a407dd94f2","before":"e7ffafdb6e76f62382d47c1bd21626ec7dae4594","commits":[{"sha":"899a4ad47e452ede041fdb99204575a407dd94f2","author":{"email":"838bd060584c511f21c75c69ea04b7b120d86af0@golang.org","name":"Rick Hudson"},"message":"runtime: Speed up heapBitsForObject\n\nOptimized heapBitsForObject by special casing\nobjects whose size is a power of two. When a\nspan holding such objects is initialized I\nadded a mask that when &ed with an interior pointer\nresults in the base of the pointer. For the garbage\nbenchmark this resulted in CPU_CLK_UNHALTED in\nheapBitsForObject going from 7.7% down to 5.9%\nof the total, INST_RETIRED went from 12.2 -> 8.7.\n\nHere are the benchmarks that were at lease plus or minus 1%.\n\nbenchmark                          old ns/op      new ns/op      delta\nBenchmarkFmtFprintfString          249            221            -11.24%\nBenchmarkFmtFprintfInt             247            223            -9.72%\nBenchmarkFmtFprintfEmpty           76.5           69.6           -9.02%\nBenchmarkBinaryTree17              4106631412     3744550160     -8.82%\nBenchmarkFmtFprintfFloat           424            399            -5.90%\nBenchmarkGoParse                   4484421        4242115        -5.40%\nBenchmarkGobEncode                 8803668        8449107        -4.03%\nBenchmarkFmtManyArgs               1494           1436           -3.88%\nBenchmarkGobDecode                 10431051       10032606       -3.82%\nBenchmarkFannkuch11                2591306713     2517400464     -2.85%\nBenchmarkTimeParse                 361            371            +2.77%\nBenchmarkJSONDecode                70620492       68830357       -2.53%\nBenchmarkRegexpMatchMedium_1K      54693          53343          -2.47%\nBenchmarkTemplate                  90008879       91929940       +2.13%\nBenchmarkTimeFormat                380            387            +1.84%\nBenchmarkRegexpMatchEasy1_32       111            113            +1.80%\nBenchmarkJSONEncode                21359159       21007583       -1.65%\nBenchmarkRegexpMatchEasy1_1K       603            613            +1.66%\nBenchmarkRegexpMatchEasy0_32       127            129            +1.57%\nBenchmarkFmtFprintfIntInt          399            393            -1.50%\nBenchmarkRegexpMatchEasy0_1K       373            378            +1.34%\n\nChange-Id: I78e297161026f8b5cc7507c965fd3e486f81ed29\nReviewed-on: https://go-review.googlesource.com/8980\nReviewed-by: Austin Clements <austin@google.com>","distinct":true,"url":"https://api.github.com/repos/mk0x9/go/commits/899a4ad47e452ede041fdb99204575a407dd94f2"}]}