Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add measure of roundtrip performance for ArrayBuffers in coverall2 test #99

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

jhugman
Copy link
Owner

@jhugman jhugman commented Sep 30, 2024

This PR adds a test round tripping of up to 32 megabytes with millisecond timings.

The Linux box on CI shows:

ArrayBuffer roundtrip: 1 bytes in 2 ms
ArrayBuffer roundtrip: 2 bytes in 1 ms
ArrayBuffer roundtrip: 4 bytes in 0 ms
ArrayBuffer roundtrip: 8 bytes in 1 ms
ArrayBuffer roundtrip: 16 bytes in 1 ms
ArrayBuffer roundtrip: 32 bytes in 0 ms
ArrayBuffer roundtrip: 64 bytes in 0 ms
ArrayBuffer roundtrip: 128 bytes in 1 ms
ArrayBuffer roundtrip: 256 bytes in 1 ms
ArrayBuffer roundtrip: 512 bytes in 0 ms
ArrayBuffer roundtrip: 1 kB in 0 ms
ArrayBuffer roundtrip: 2 kB in 0 ms
ArrayBuffer roundtrip: 4 kB in 0 ms
ArrayBuffer roundtrip: 8 kB in 1 ms
ArrayBuffer roundtrip: 16 kB in 2 ms
ArrayBuffer roundtrip: 32 kB in 3 ms
ArrayBuffer roundtrip: 64 kB in 6 ms
ArrayBuffer roundtrip: 128 kB in 11 ms
ArrayBuffer roundtrip: 256 kB in 21 ms
ArrayBuffer roundtrip: 512 kB in 67 ms
ArrayBuffer roundtrip: 1 MB in 96 ms
ArrayBuffer roundtrip: 2 MB in 192 ms
ArrayBuffer roundtrip: 4 MB in 369 ms
ArrayBuffer roundtrip: 8 MB in 702 ms
ArrayBuffer roundtrip: 16 MB in 1368 ms
ArrayBuffer roundtrip: 32 MB in 2652 ms

My M3 MBP shows:

ArrayBuffer roundtrip: 1 bytes in 1 ms
ArrayBuffer roundtrip: 2 bytes in 0 ms
ArrayBuffer roundtrip: 4 bytes in 0 ms
ArrayBuffer roundtrip: 8 bytes in 1 ms
ArrayBuffer roundtrip: 16 bytes in 0 ms
ArrayBuffer roundtrip: 32 bytes in 0 ms
ArrayBuffer roundtrip: 64 bytes in 0 ms
ArrayBuffer roundtrip: 128 bytes in 0 ms
ArrayBuffer roundtrip: 256 bytes in 0 ms
ArrayBuffer roundtrip: 512 bytes in 0 ms
ArrayBuffer roundtrip: 1 kB in 0 ms
ArrayBuffer roundtrip: 2 kB in 0 ms
ArrayBuffer roundtrip: 4 kB in 1 ms
ArrayBuffer roundtrip: 8 kB in 0 ms
ArrayBuffer roundtrip: 16 kB in 1 ms
ArrayBuffer roundtrip: 32 kB in 1 ms
ArrayBuffer roundtrip: 64 kB in 3 ms
ArrayBuffer roundtrip: 128 kB in 7 ms
ArrayBuffer roundtrip: 256 kB in 13 ms
ArrayBuffer roundtrip: 512 kB in 43 ms
ArrayBuffer roundtrip: 1 MB in 59 ms
ArrayBuffer roundtrip: 2 MB in 114 ms
ArrayBuffer roundtrip: 4 MB in 245 ms
ArrayBuffer roundtrip: 8 MB in 429 ms
ArrayBuffer roundtrip: 16 MB in 838 ms
ArrayBuffer roundtrip: 32 MB in 1648 ms

Let's see what the device shows.

@jhugman jhugman requested a review from zzorba September 30, 2024 15:48
Copy link
Collaborator

@zzorba zzorba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jhugman jhugman merged commit 2aca866 into main Sep 30, 2024
1 check passed
@jhugman jhugman deleted the jhugman/measure-rt-perf branch September 30, 2024 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants