This benchmark seems only to test "the max rev of an engine" which is not very useful info. Anyway, here is the idiomatic ( = efficient, expressive, elegant) way to implement the request handler functionality required in that benchmark:
if ctx.isUri("/") or not ctx.isMethod("GET"): ctx.reply(Http200)
else:
let id = ctx.getUri()[6 .. ^1]
ctx.reply(id)
This benchmark seems only to test "the max rev of an engine" which is not very useful info. Anyway, here is the idiomatic ( = efficient, expressive, elegant) way to implement the request handler functionality required in that benchmark: