Comments (4)
The context switch latency varies from 10 to 20 nano seconds depending how many coroutines you are running with.
We already have a test case for this.
PhotonLibOS/thread/test/test.cpp
Lines 380 to 398 in 0fa93f3
You can run it on your environment.
from photonlibos.
But I wonder why context switch is what you are concerned. It doesn't weigh too much in the whole IO process, only a small portion, I believe.
Can you describe your scenario?
from photonlibos.
10 to 20 nano seconds
wonderful, can not believe, as I know the bthread which is a coroutine in brpc context switch time is 2~3 us..........
from photonlibos.
But I wonder why context switch is what you are concerned. It doesn't weigh too much in the whole IO process, only a small portion, I believe.
Can you describe your scenario?
high frenquency trading. it is latency sensitive.
from photonlibos.
Related Issues (20)
- use jemalloc as memory pool HOT 2
- Macos构建失败 HOT 2
- Compare with seastar ? HOT 2
- update benchmark result(asyncio) HOT 5
- Purpose of asymmetric_spinLock HOT 6
- 协程栈分配优化问题 HOT 2
- photon stack 有支持spdk的blobfs计划吗 HOT 4
- How to implement streaming client that terminates after data transfer completion HOT 3
- Creating and joining a number of threads only known at runtime HOT 22
- WorkerPool usage uncertainty (multi vcpus) HOT 9
- build test failed on windows wsl ubuntu 22.04 HOT 2
- HTTPServerRequest::Body() does not return the body of a request HOT 7
- gcc version HOT 5
- benchmark HOT 4
- simple in examples crashed HOT 9
- compare with async_simple? HOT 3
- question: Can it be compiled and run on centos7 HOT 8
- Node.js echo server HOT 5
- About tuple_assitance::callable HOT 2
- Suggestion: Uniform code style HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photonlibos.