3 ms·
Ok, so I added a third benchmark where the handler gets and item from memcache (NOT from a database). Here are the results: PASS Benchmark_Routes
by bradrydzewski 14y ago
Ok, so I added a third benchmark where the handler gets and item from memcache (NOT from a database). Here are the results:
PASS
Benchmark_Routes 10000 234063 ns/op
Benchmark_Pat 10000 233162 ns/op
Benchmark_GorillaHandler 5000 265943 ns/op
Benchmark_Webgo 5000 348349 ns/op
ok github.com/bradrydzewski/routes/bench 10.062s
Notice the top 3 frameworks (pat, routes and Gorialla) have almost identical performance results. The point being is that routing and string manipulation are relatively inexpensive when compared to even the most lightweight TCP request, in this case to the memcache server.