tbox: 10000000 switches in 187 ms, 53475935 switches per second
boost: 10000000 switches in 199 ms, 50251256 switches per second
libmill: 10000000 switches in 145 ms, 68965517 switches per second
libtask: 10000000 switches in 5280 ms, 1893939 switches per second
libgo(boost): 10000000 switches in 1086 ms, 9208103 switches per second
libco: 10000000 switches in 687 ms, 14556040 switches per second
coroutine(cloudwu): 10000000 switches in 5181 ms, 1930129 switches per second
libfiber(acl): 10000000 switches in 342 ms, 29239766 switches per second
golang: 10000000 switches in 1200 ms, 8333333 switches per second
❯ xmake
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
-> libmill 1.18 [optional]
in benchbox-repo:
-> libfiber master [optional]
please input: y (y/n/m)
n
[100%]: build ok!
❯ xmake coroutine --casename=switch -D -v
finding libtask from xmake ..
finding libfiber from xmake ..
finding libmill from xmake ..
finding libfiber from brew ..
finding libmill from brew ..
finding libgo from xmake ..
finding libco from xmake ..
finding coroutine from xmake ..
finding libaco from xmake ..
finding bzip2 from xmake ..
finding zlib from xmake ..
finding zlib from pacman ..
finding zlib1g-dev from apt ..
finding libfiber from vcpkg ..
checkinfo: vcpkg root directory not found, maybe you need set $VCPKG_ROOT!
finding libfiber from conan ..
finding libfiber from pkgconfig ..
finding libmill from vcpkg ..
checkinfo: vcpkg root directory not found, maybe you need set $VCPKG_ROOT!
finding libmill from conan ..
finding libmill from pkgconfig ..
finding boost from xmake ..
finding tbox from xmake ..
finding libfiber from system ..
finding libmill from system ..
error: @programdir/core/main.lua:279: @programdir/core/sandbox/modules/import/core/base/task.lua:65: @programdir/core/sandbox/modules/import/core/base/task.lua:65: @programdir/actions/config/main.lua:113: project and targets may have been loaded early!
stack traceback:
[C]: in function 'error'
[@programdir/core/base/os.lua:829]: in function 'raiselevel'
[@programdir/core/sandbox/modules/utils.lua:181]: in function 'assert'
[@programdir/actions/config/main.lua:113]: in function '_check_targets'
[@programdir/actions/config/main.lua:416]:
[C]: in function 'load'
[@programdir/core/base/task.lua:519]: in function 'run'
[@programdir/core/sandbox/modules/import/core/base/task.lua:63]: in function 'run'
[@programdir/actions/run/main.lua:186]:
[C]: in function 'load'
[@programdir/core/base/task.lua:519]: in function 'run'
[@programdir/core/sandbox/modules/import/core/base/task.lua:63]: in function 'run'
[./src/xmake.lua:33]:
[C]: in function 'load'
[@programdir/core/base/task.lua:519]: in function 'run'
[@programdir/core/main.lua:277]: in function 'cotask'
[@programdir/core/base/scheduler.lua:365]:
stack traceback:
[C]: in function 'error'
@programdir/core/base/os.lua:829: in function 'raise'
@programdir/core/main.lua:279: in function 'cotask'
@programdir/core/base/scheduler.lua:365: in function <@programdir/core/base/scheduler.lua:362>
❯ uname -a
Linux sun-desktop 5.11.0-36-generic #40~20.04.1-Ubuntu SMP Sat Sep 18 02:14:19 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
❯ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-17ubuntu1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-HskZEa/gcc-9-9.3.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)