benchmarks: code simplifying
api: missed thread_local specifier added