Language
C++
Compiler
clang HEAD 8.0.0 (https://github.com/llvm-mirror/clang.git 33b30eb6d622918dcdc0425730a712f0460db522) (https://github.com/llvm-mirror/llvm.git c93c84c76212d2ca49767ccd0bd89076291a7fce)
Options
Warnings
Optimization
Boost 1.67.0
C++2a(GNU)
no pedantic
Raw compiler options
-fcoroutines-ts
$ clang++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.67.0/clang-head/include -std=gnu++2a -fcoroutines-ts
testing stackful...
=> 705082704
elapsed 5.89266 ms
testing stackless...
=> 705082704
elapsed 0.324923
stackless are 18.1356 times faster
stackful consume 58.9266 ns per iteration
stackless consume 3.24923 ns per iteration
Exit Code:
0