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

Run

$ xmake coroutine -n switch

Macosx (x86_64)

tbox:               10000000 switches in 204 ms, 49019607 switches per second
boost:              10000000 switches in 581 ms, 17211703 switches per second
libmill:            10000000 switches in 521 ms, 19193857 switches per second
libtask:            10000000 switches in 1558 ms, 6418485 switches per second
protothreads:       10000000 switches in 6 ms, 1666666666 switches per second

ArchLinux + VirtualBox (i386)

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
protothreads:       10000000 switches in 12 ms, 833333333 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

Linux (x86_64)

Windows (x86)

Windows (x64)

Clone this wiki locally