Language
C++
Compiler
gcc 8.1.0
Options
Warnings
Optimization
Boost 1.67.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.67.0/gcc-8.1.0/include -std=gnu++2a
string length: 489
test iterations: 10000
string split: 42.8627 ms, res 690000 Allocation count: 110000, size 82330000
string_view split: 45.6841 ms, res 690000 Allocation count: 80000, size 40800000
boost split: 117.521 ms, res 690000 Allocation count: 160000, size 83930000
Exit Code:
0