Open Juerd opened 6 years ago
In case you don't mind loading a module, https://github.com/Juerd/p6-mqtt/blob/master/t/regex.t could make a useful benchmark. It has a Perl 5 equivalent at https://github.com/Juerd/Net-MQTT-Simple/blob/master/t/regex.t and the code is unlikely to change over time.
Or, if loading a non-core module is a deal breaker, you could simply copy/paste the filter-as-regex function instead of my &far := &MQTT::Client::filter-as-regex;.
filter-as-regex
my &far := &MQTT::Client::filter-as-regex;
In case you don't mind loading a module, https://github.com/Juerd/p6-mqtt/blob/master/t/regex.t could make a useful benchmark. It has a Perl 5 equivalent at https://github.com/Juerd/Net-MQTT-Simple/blob/master/t/regex.t and the code is unlikely to change over time.