contrib: benchmark: incorporated J's extensions with some modifications