Skip to content
ruki edited this page Oct 25, 2016 · 10 revisions

Run

$ xmake coroutine -n switch

Macosx (x86_64)

tbox:               10000000 switches in 205 ms, 48780487 switches per second
boost:              10000000 switches in 728 ms, 13736263 switches per second
libmill:            10000000 switches in 525 ms, 19047619 switches per second
libtask:            10000000 switches in 1602 ms, 6242197 switches per second
golang:             10000000 switches in 1558 ms, 6418485 switches per second

ArchLinux (i386) + VirtualBox

tbox:               10000000 switches in 258 ms, 38759689 switches per second
boost:              10000000 switches in 875 ms, 11428571 switches per second
libmill:            10000000 switches in 1232 ms, 8116883 switches per second
libtask:            10000000 switches in 8652 ms, 1155802 switches per second
libgo(boost):       10000000 switches in 2716 ms, 3681885 switches per second
libco:              10000000 switches in 1402 ms, 7132667 switches per second
coroutine(cloudwu): 10000000 switches in 8613 ms, 1161035 switches per second
libfiber(acl):      10000000 switches in 1493 ms, 6697923 switches per second
golang:             10000000 switches in 2250 ms, 4444444 switches per second

LinuxMint (x86_64) + VirtaulBox

tbox:               10000000 switches in 412 ms, 24271844 switches per second
boost:              10000000 switches in 425 ms, 23529411 switches per second
libmill:            10000000 switches in 458 ms, 21834061 switches per second
libtask:            10000000 switches in 9523 ms, 1050089 switches per second
libgo(boost):       10000000 switches in 2213 ms, 4518752 switches per second
libco:              10000000 switches in 1401 ms, 7137758 switches per second
coroutine(cloudwu): 10000000 switches in 9219 ms, 1084716 switches per second
libfiber(acl):      10000000 switches in 709 ms, 14104372 switches per second
golang:             10000000 switches in 2434 ms, 4108463 switches per second

Windows Xp (x86) + VirtualBox

tbox:               10000000 switches in 1182 ms, 8460236 switches per second

Windows Win7 (x64) + VirtualBox

tbox:               10000000 switches in 1328 ms, 8097165 switches per second
Clone this wiki locally