Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Cubie vs RPI benchmark | Memory
## RPI 1/2
Long uses 4 bytes. Allocating 2*33554432 elements = 268435456 bytes of memory.
Using 262144 bytes as blocks for memcpy block copy test.
Getting down to business... Doing 10 runs per test.
0 Method: MEMCPY Elapsed: 1.72793 MiB: 128.00000 Copy: 74.077 MiB/s
1 Method: MEMCPY Elapsed: 1.72856 MiB: 128.00000 Copy: 74.050 MiB/s
2 Method: MEMCPY Elapsed: 1.73830 MiB: 128.00000 Copy: 73.635 MiB/s
3 Method: MEMCPY Elapsed: 1.72849 MiB: 128.00000 Copy: 74.053 MiB/s
4 Method: MEMCPY Elapsed: 1.72736 MiB: 128.00000 Copy: 74.102 MiB/s
5 Method: MEMCPY Elapsed: 1.72932 MiB: 128.00000 Copy: 74.018 MiB/s
6 Method: MEMCPY Elapsed: 1.72949 MiB: 128.00000 Copy: 74.010 MiB/s
7 Method: MEMCPY Elapsed: 1.72801 MiB: 128.00000 Copy: 74.073 MiB/s
8 Method: MEMCPY Elapsed: 1.74756 MiB: 128.00000 Copy: 73.245 MiB/s
9 Method: MEMCPY Elapsed: 1.74916 MiB: 128.00000 Copy: 73.178 MiB/s
AVG Method: MEMCPY Elapsed: 1.73342 MiB: 128.00000 Copy: 73.843 MiB/s
0 Method: DUMB Elapsed: 0.41150 MiB: 128.00000 Copy: 311.059 MiB/s
1 Method: DUMB Elapsed: 0.40505 MiB: 128.00000 Copy: 316.012 MiB/s
2 Method: DUMB Elapsed: 0.41019 MiB: 128.00000 Copy: 312.050 MiB/s
3 Method: DUMB Elapsed: 0.40580 MiB: 128.00000 Copy: 315.428 MiB/s
4 Method: DUMB Elapsed: 0.40361 MiB: 128.00000 Copy: 317.137 MiB/s
5 Method: DUMB Elapsed: 0.40373 MiB: 128.00000 Copy: 317.040 MiB/s
6 Method: DUMB Elapsed: 0.40505 MiB: 128.00000 Copy: 316.011 MiB/s
7 Method: DUMB Elapsed: 0.40380 MiB: 128.00000 Copy: 316.988 MiB/s
8 Method: DUMB Elapsed: 0.40526 MiB: 128.00000 Copy: 315.845 MiB/s
9 Method: DUMB Elapsed: 0.40331 MiB: 128.00000 Copy: 317.373 MiB/s
AVG Method: DUMB Elapsed: 0.40573 MiB: 128.00000 Copy: 315.481 MiB/s
0 Method: MCBLOCK Elapsed: 1.63654 MiB: 128.00000 Copy: 78.214 MiB/s
1 Method: MCBLOCK Elapsed: 1.63552 MiB: 128.00000 Copy: 78.262 MiB/s
2 Method: MCBLOCK Elapsed: 1.63634 MiB: 128.00000 Copy: 78.223 MiB/s
3 Method: MCBLOCK Elapsed: 1.63636 MiB: 128.00000 Copy: 78.222 MiB/s
4 Method: MCBLOCK Elapsed: 1.63847 MiB: 128.00000 Copy: 78.122 MiB/s
5 Method: MCBLOCK Elapsed: 1.63580 MiB: 128.00000 Copy: 78.249 MiB/s
6 Method: MCBLOCK Elapsed: 1.63513 MiB: 128.00000 Copy: 78.281 MiB/s
7 Method: MCBLOCK Elapsed: 1.63691 MiB: 128.00000 Copy: 78.196 MiB/s
8 Method: MCBLOCK Elapsed: 1.63657 MiB: 128.00000 Copy: 78.212 MiB/s
9 Method: MCBLOCK Elapsed: 1.63519 MiB: 128.00000 Copy: 78.278 MiB/s
AVG Method: MCBLOCK Elapsed: 1.63628 MiB: 128.00000 Copy: 78.226 MiB/s
## RPI 2/2
Long uses 4 bytes. Allocating 2*33554432 elements = 268435456 bytes of memory.
Using 262144 bytes as blocks for memcpy block copy test.
Getting down to business... Doing 10 runs per test.
0 Method: MEMCPY Elapsed: 1.72393 MiB: 128.00000 Copy: 74.249 MiB/s
1 Method: MEMCPY Elapsed: 1.73247 MiB: 128.00000 Copy: 73.883 MiB/s
2 Method: MEMCPY Elapsed: 1.72565 MiB: 128.00000 Copy: 74.175 MiB/s
3 Method: MEMCPY Elapsed: 1.72556 MiB: 128.00000 Copy: 74.179 MiB/s
4 Method: MEMCPY Elapsed: 1.72404 MiB: 128.00000 Copy: 74.244 MiB/s
5 Method: MEMCPY Elapsed: 1.72541 MiB: 128.00000 Copy: 74.185 MiB/s
6 Method: MEMCPY Elapsed: 1.72494 MiB: 128.00000 Copy: 74.205 MiB/s
7 Method: MEMCPY Elapsed: 1.72420 MiB: 128.00000 Copy: 74.237 MiB/s
8 Method: MEMCPY Elapsed: 1.72594 MiB: 128.00000 Copy: 74.163 MiB/s
9 Method: MEMCPY Elapsed: 1.72578 MiB: 128.00000 Copy: 74.169 MiB/s
AVG Method: MEMCPY Elapsed: 1.72579 MiB: 128.00000 Copy: 74.169 MiB/s
0 Method: DUMB Elapsed: 0.40211 MiB: 128.00000 Copy: 318.318 MiB/s
1 Method: DUMB Elapsed: 0.41487 MiB: 128.00000 Copy: 308.530 MiB/s
2 Method: DUMB Elapsed: 0.40297 MiB: 128.00000 Copy: 317.645 MiB/s
3 Method: DUMB Elapsed: 0.40393 MiB: 128.00000 Copy: 316.889 MiB/s
4 Method: DUMB Elapsed: 0.40221 MiB: 128.00000 Copy: 318.239 MiB/s
5 Method: DUMB Elapsed: 0.40229 MiB: 128.00000 Copy: 318.182 MiB/s
6 Method: DUMB Elapsed: 0.40435 MiB: 128.00000 Copy: 316.555 MiB/s
7 Method: DUMB Elapsed: 0.40254 MiB: 128.00000 Copy: 317.983 MiB/s
8 Method: DUMB Elapsed: 0.40400 MiB: 128.00000 Copy: 316.829 MiB/s
9 Method: DUMB Elapsed: 0.40252 MiB: 128.00000 Copy: 317.994 MiB/s
AVG Method: DUMB Elapsed: 0.40418 MiB: 128.00000 Copy: 316.691 MiB/s
0 Method: MCBLOCK Elapsed: 1.62257 MiB: 128.00000 Copy: 78.887 MiB/s
1 Method: MCBLOCK Elapsed: 1.64319 MiB: 128.00000 Copy: 77.897 MiB/s
2 Method: MCBLOCK Elapsed: 1.62252 MiB: 128.00000 Copy: 78.890 MiB/s
3 Method: MCBLOCK Elapsed: 1.62153 MiB: 128.00000 Copy: 78.938 MiB/s
4 Method: MCBLOCK Elapsed: 1.64342 MiB: 128.00000 Copy: 77.887 MiB/s
5 Method: MCBLOCK Elapsed: 1.62698 MiB: 128.00000 Copy: 78.673 MiB/s
6 Method: MCBLOCK Elapsed: 1.62055 MiB: 128.00000 Copy: 78.986 MiB/s
7 Method: MCBLOCK Elapsed: 1.62269 MiB: 128.00000 Copy: 78.882 MiB/s
8 Method: MCBLOCK Elapsed: 1.62238 MiB: 128.00000 Copy: 78.896 MiB/s
9 Method: MCBLOCK Elapsed: 1.62090 MiB: 128.00000 Copy: 78.968 MiB/s
AVG Method: MCBLOCK Elapsed: 1.62667 MiB: 128.00000 Copy: 78.688 MiB/s
## Cubie 1/2
Long uses 4 bytes. Allocating 2*33554432 elements = 268435456 bytes of memory.
Using 262144 bytes as blocks for memcpy block copy test.
Getting down to business... Doing 10 runs per test.
0 Method: MEMCPY Elapsed: 0.49158 MiB: 128.00000 Copy: 260.386 MiB/s
1 Method: MEMCPY Elapsed: 0.49423 MiB: 128.00000 Copy: 258.988 MiB/s
2 Method: MEMCPY Elapsed: 0.49133 MiB: 128.00000 Copy: 260.517 MiB/s
3 Method: MEMCPY Elapsed: 0.49219 MiB: 128.00000 Copy: 260.061 MiB/s
4 Method: MEMCPY Elapsed: 0.49155 MiB: 128.00000 Copy: 260.401 MiB/s
5 Method: MEMCPY Elapsed: 0.49172 MiB: 128.00000 Copy: 260.310 MiB/s
6 Method: MEMCPY Elapsed: 0.49145 MiB: 128.00000 Copy: 260.452 MiB/s
7 Method: MEMCPY Elapsed: 0.49164 MiB: 128.00000 Copy: 260.353 MiB/s
8 Method: MEMCPY Elapsed: 0.50484 MiB: 128.00000 Copy: 253.545 MiB/s
9 Method: MEMCPY Elapsed: 0.49167 MiB: 128.00000 Copy: 260.335 MiB/s
AVG Method: MEMCPY Elapsed: 0.49322 MiB: 128.00000 Copy: 259.518 MiB/s
0 Method: DUMB Elapsed: 0.29573 MiB: 128.00000 Copy: 432.830 MiB/s
1 Method: DUMB Elapsed: 0.29379 MiB: 128.00000 Copy: 435.678 MiB/s
2 Method: DUMB Elapsed: 0.29605 MiB: 128.00000 Copy: 432.367 MiB/s
3 Method: DUMB Elapsed: 0.29479 MiB: 128.00000 Copy: 434.203 MiB/s
4 Method: DUMB Elapsed: 0.29579 MiB: 128.00000 Copy: 432.738 MiB/s
5 Method: DUMB Elapsed: 0.29546 MiB: 128.00000 Copy: 433.227 MiB/s
6 Method: DUMB Elapsed: 0.29682 MiB: 128.00000 Copy: 431.235 MiB/s
7 Method: DUMB Elapsed: 0.29555 MiB: 128.00000 Copy: 433.092 MiB/s
8 Method: DUMB Elapsed: 0.29618 MiB: 128.00000 Copy: 432.171 MiB/s
9 Method: DUMB Elapsed: 0.29543 MiB: 128.00000 Copy: 433.264 MiB/s
AVG Method: DUMB Elapsed: 0.29556 MiB: 128.00000 Copy: 433.078 MiB/s
0 Method: MCBLOCK Elapsed: 0.18529 MiB: 128.00000 Copy: 690.824 MiB/s
1 Method: MCBLOCK Elapsed: 0.18365 MiB: 128.00000 Copy: 696.986 MiB/s
2 Method: MCBLOCK Elapsed: 0.18976 MiB: 128.00000 Copy: 674.522 MiB/s
3 Method: MCBLOCK Elapsed: 0.18327 MiB: 128.00000 Copy: 698.442 MiB/s
4 Method: MCBLOCK Elapsed: 0.18460 MiB: 128.00000 Copy: 693.410 MiB/s
5 Method: MCBLOCK Elapsed: 0.18410 MiB: 128.00000 Copy: 695.289 MiB/s
6 Method: MCBLOCK Elapsed: 0.18953 MiB: 128.00000 Copy: 675.344 MiB/s
7 Method: MCBLOCK Elapsed: 0.18355 MiB: 128.00000 Copy: 697.358 MiB/s
8 Method: MCBLOCK Elapsed: 0.18395 MiB: 128.00000 Copy: 695.845 MiB/s
9 Method: MCBLOCK Elapsed: 0.18372 MiB: 128.00000 Copy: 696.720 MiB/s
AVG Method: MCBLOCK Elapsed: 0.18514 MiB: 128.00000 Copy: 691.367 MiB/s
## Cubie 2/2
Long uses 4 bytes. Allocating 2*33554432 elements = 268435456 bytes of memory.
Using 262144 bytes as blocks for memcpy block copy test.
Getting down to business... Doing 10 runs per test.
0 Method: MEMCPY Elapsed: 0.50279 MiB: 128.00000 Copy: 254.580 MiB/s
1 Method: MEMCPY Elapsed: 0.49251 MiB: 128.00000 Copy: 259.894 MiB/s
2 Method: MEMCPY Elapsed: 0.50226 MiB: 128.00000 Copy: 254.846 MiB/s
3 Method: MEMCPY Elapsed: 0.49264 MiB: 128.00000 Copy: 259.823 MiB/s
4 Method: MEMCPY Elapsed: 0.49280 MiB: 128.00000 Copy: 259.741 MiB/s
5 Method: MEMCPY Elapsed: 0.49267 MiB: 128.00000 Copy: 259.807 MiB/s
6 Method: MEMCPY Elapsed: 0.49263 MiB: 128.00000 Copy: 259.827 MiB/s
7 Method: MEMCPY Elapsed: 0.50213 MiB: 128.00000 Copy: 254.914 MiB/s
8 Method: MEMCPY Elapsed: 0.49275 MiB: 128.00000 Copy: 259.765 MiB/s
9 Method: MEMCPY Elapsed: 0.49341 MiB: 128.00000 Copy: 259.419 MiB/s
AVG Method: MEMCPY Elapsed: 0.49566 MiB: 128.00000 Copy: 258.241 MiB/s
0 Method: DUMB Elapsed: 0.29762 MiB: 128.00000 Copy: 430.076 MiB/s
1 Method: DUMB Elapsed: 0.30565 MiB: 128.00000 Copy: 418.776 MiB/s
2 Method: DUMB Elapsed: 0.29736 MiB: 128.00000 Copy: 430.456 MiB/s
3 Method: DUMB Elapsed: 0.29775 MiB: 128.00000 Copy: 429.888 MiB/s
4 Method: DUMB Elapsed: 0.30413 MiB: 128.00000 Copy: 420.870 MiB/s
5 Method: DUMB Elapsed: 0.29677 MiB: 128.00000 Copy: 431.312 MiB/s
6 Method: DUMB Elapsed: 0.29721 MiB: 128.00000 Copy: 430.670 MiB/s
7 Method: DUMB Elapsed: 0.30390 MiB: 128.00000 Copy: 421.188 MiB/s
8 Method: DUMB Elapsed: 0.29691 MiB: 128.00000 Copy: 431.109 MiB/s
9 Method: DUMB Elapsed: 0.29581 MiB: 128.00000 Copy: 432.710 MiB/s
AVG Method: DUMB Elapsed: 0.29931 MiB: 128.00000 Copy: 427.648 MiB/s
0 Method: MCBLOCK Elapsed: 0.17759 MiB: 128.00000 Copy: 720.753 MiB/s
1 Method: MCBLOCK Elapsed: 0.17608 MiB: 128.00000 Copy: 726.926 MiB/s
2 Method: MCBLOCK Elapsed: 0.17593 MiB: 128.00000 Copy: 727.558 MiB/s
3 Method: MCBLOCK Elapsed: 0.17751 MiB: 128.00000 Copy: 721.098 MiB/s
4 Method: MCBLOCK Elapsed: 0.17553 MiB: 128.00000 Copy: 729.224 MiB/s
5 Method: MCBLOCK Elapsed: 0.17589 MiB: 128.00000 Copy: 727.736 MiB/s
6 Method: MCBLOCK Elapsed: 0.17623 MiB: 128.00000 Copy: 726.328 MiB/s
7 Method: MCBLOCK Elapsed: 0.17600 MiB: 128.00000 Copy: 727.269 MiB/s
8 Method: MCBLOCK Elapsed: 0.17597 MiB: 128.00000 Copy: 727.393 MiB/s
9 Method: MCBLOCK Elapsed: 0.17681 MiB: 128.00000 Copy: 723.941 MiB/s
AVG Method: MCBLOCK Elapsed: 0.17635 MiB: 128.00000 Copy: 725.812 MiB/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment