1
1
Fork
You've already forked bittricks
1

bench_static: Add benchmarks for p{exp,dep}s{,_1} #14

Merged
jjl merged 2 commits from jepler/bittricks:bench_static-array-version into main 2026年03月31日 18:40:19 +02:00
Collaborator
Copy link

Typical output, i5-1235U, performance core

estimated overhead 1.195 msec ( 1.195 nsec per iteration ) last: d423b7ad3868912d
pext: 1.579 msec ( 1.579 nsec per iteration ) last: 0002263039ed1a3f
pdep: 1.556 msec ( 1.556 nsec per iteration ) last: a589e3daa1ddc7bd
pexts (warmup) 5.930 msec ( 5.930 nsec per iteration ) last: 0002263039ed1a3f
pexts: 2.139 msec ( 2.139 nsec per iteration ) last: 0002263039ed1a3f
pdeps: 1.976 msec ( 1.976 nsec per iteration ) last: a589e3daa1ddc7bd
pexts_1: 1.791 msec ( 1.791 nsec per iteration ) last: 0000000e53d5f2c7
pdeps_1: 1.698 msec ( 1.698 nsec per iteration ) last: 002b43089394d373
best impl: 1

I found that a warmup run on the large array was necessary.
perhaps some other way of pre-faulting could be done instead.

Typical output, i5-1235U, performance core ``` estimated overhead 1.195 msec ( 1.195 nsec per iteration ) last: d423b7ad3868912d pext: 1.579 msec ( 1.579 nsec per iteration ) last: 0002263039ed1a3f pdep: 1.556 msec ( 1.556 nsec per iteration ) last: a589e3daa1ddc7bd pexts (warmup) 5.930 msec ( 5.930 nsec per iteration ) last: 0002263039ed1a3f pexts: 2.139 msec ( 2.139 nsec per iteration ) last: 0002263039ed1a3f pdeps: 1.976 msec ( 1.976 nsec per iteration ) last: a589e3daa1ddc7bd pexts_1: 1.791 msec ( 1.791 nsec per iteration ) last: 0000000e53d5f2c7 pdeps_1: 1.698 msec ( 1.698 nsec per iteration ) last: 002b43089394d373 best impl: 1 ``` I found that a warmup run on the large array was necessary. perhaps some other way of pre-faulting could be done instead.
Typical output, i5-1235U, performance core
```
estimated overhead 1.195 msec ( 1.195 nsec per iteration ) last: d423b7ad3868912d
pext: 1.579 msec ( 1.579 nsec per iteration ) last: 0002263039ed1a3f
pdep: 1.556 msec ( 1.556 nsec per iteration ) last: a589e3daa1ddc7bd
pexts (warmup) 5.930 msec ( 5.930 nsec per iteration ) last: 0002263039ed1a3f
pexts: 2.139 msec ( 2.139 nsec per iteration ) last: 0002263039ed1a3f
pdeps: 1.976 msec ( 1.976 nsec per iteration ) last: a589e3daa1ddc7bd
pexts_1: 1.791 msec ( 1.791 nsec per iteration ) last: 0000000e53d5f2c7
pdeps_1: 1.698 msec ( 1.698 nsec per iteration ) last: 002b43089394d373
best impl: 1
```
I found that a warmup run on the large array was necessary.
perhaps some other way of pre-faulting could be done instead.
ci: show output of bench_static during CI (not for qemu though)
All checks were successful
Build & Test / build (pull_request) Successful in 1m57s
Build & Test / build (push) Successful in 1m58s
d170bb533c
Owner
Copy link

I found that a warmup run on the large array was necessary. perhaps some other way of pre-faulting could be done instead.

lol, did you just make a million entry array of test data? that's going to be more problematic than a small one i would have thought.

> I found that a warmup run on the large array was necessary. perhaps some other way of pre-faulting could be done instead. lol, did you just make a million entry array of test data? that's going to be more problematic than a small one i would have thought.
Author
Collaborator
Copy link

Yeah it's shameful. I can rework it to be less shameful if you want, or I can close it up.

Yeah it's shameful. I can rework it to be less shameful if you want, or I can close it up.
Owner
Copy link

ah fuck it, these are only really for completeness anyway.

ah fuck it, these are only really for completeness anyway.
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jjl/bittricks!14
Reference in a new issue
jjl/bittricks
No description provided.
Delete branch "jepler/bittricks:bench_static-array-version"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?