Comments (3)
It makes sense for DynStack to be a little bit slower here as you don’t actually dereference the Box. But I think there’s some room for optimizing our iterator implementation.
from dynstack.
Yes. The comparison here is unfair. Since for access_native
(which is probably meant to be named access_naive
like the others?) is actually calling black_box::<Box<usize>>(i)
while access_dynstack
is calling black_box<usize>(i)
. So you are not measuring accessing all the integers in access_native
.
from dynstack.
Thanks for pointing out that I missed a dereference for access_native
😆
Re-run using some dereferences and now they look to be very close:
access_native time: [1.7039 us 1.7159 us 1.7286 us]
Found 6 outliers among 100 measurements (6.00%)
4 (4.00%) high mild
2 (2.00%) high severe
access_dynstack time: [1.7637 us 1.7747 us 1.7865 us]
Found 7 outliers among 100 measurements (7.00%)
4 (4.00%) high mild
3 (3.00%) high severe
Additionally found that when Box
es are allocated discretely, DynStack performs better as expected:
access_native time: [1.8888 us 1.9224 us 1.9606 us]
Found 6 outliers among 100 measurements (6.00%)
5 (5.00%) high mild
1 (1.00%) high severe
access_dynstack time: [1.7361 us 1.7598 us 1.7841 us]
Found 8 outliers among 100 measurements (8.00%)
7 (7.00%) high mild
1 (1.00%) high severe
from dynstack.
Related Issues (8)
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 dynstack.