Skip to content

Instantly share code, notes, and snippets.

@sirupsen
Last active June 2, 2021 21:10
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirupsen/766f266eebf6bdf2525bdbb309e17a41 to your computer and use it in GitHub Desktop.
Save sirupsen/766f266eebf6bdf2525bdbb309e17a41 to your computer and use it in GitHub Desktop.
c2-standard-4 (4 vCPUs, 16 GB memory), SSD persistent
Matching tests with regex: memory
Executing memory_read_sequential..
[Read Seq Vec <64 B>] Iterations in 111 miliseconds, no overhead: 15,625,000
[Read Seq Vec <64 B>] Iterations / second: 140,765,765
[Read Seq Vec <64 B>] Bytes handled per iteration: 64 bytes
[Read Seq Vec <64 B>] Total bytes processed: 953.674 MiB
[Read Seq Vec <64 B>] Throughput: 8.390 GiB/s
[Read Seq Vec <64 B>] Avg single iteration: 7.129 ns
[Read Seq Vec <64 B>] Avg single iteration cycles: 22.10
[Read Seq Vec <64 B>] Time to process 1 MiB: 116 μs
[Read Seq Vec <64 B>] Time to process 1 GiB: 119 ms
[Read Seq Vec <64 B>] Time to process 1 TiB: 2.03 min
Executing memory_write_sequential..
[Write Seq Vec <64 B>] Iterations in 113 miliseconds, no overhead: 15,625,000
[Write Seq Vec <64 B>] Iterations / second: 138,274,336
[Write Seq Vec <64 B>] Bytes handled per iteration: 64 bytes
[Write Seq Vec <64 B>] Total bytes processed: 953.674 MiB
[Write Seq Vec <64 B>] Throughput: 8.242 GiB/s
[Write Seq Vec <64 B>] Avg single iteration: 7.285 ns
[Write Seq Vec <64 B>] Avg single iteration cycles: 22.58
[Write Seq Vec <64 B>] Time to process 1 MiB: 119 μs
[Write Seq Vec <64 B>] Time to process 1 GiB: 122 ms
[Write Seq Vec <64 B>] Time to process 1 TiB: 2.08 min
Executing memory_read_random..
[Random Read Vec <64 B>] Iterations in 499 miliseconds, no overhead: 15,625,000
[Random Read Vec <64 B>] Iterations / second: 31,312,625
[Random Read Vec <64 B>] Bytes handled per iteration: 64 bytes
[Random Read Vec <64 B>] Total bytes processed: 953.674 MiB
[Random Read Vec <64 B>] Throughput: 1.866 GiB/s
[Random Read Vec <64 B>] Avg single iteration: 31 ns
[Random Read Vec <64 B>] Avg single iteration cycles: 99.06
[Random Read Vec <64 B>] Time to process 1 MiB: 523 μs
[Random Read Vec <64 B>] Time to process 1 GiB: 536 ms
[Random Read Vec <64 B>] Time to process 1 TiB: 9.13 min
Executing memory_write_random..
[Random Write Vec <64 B>] Iterations in 817 miliseconds, no overhead: 15,625,000
[Random Write Vec <64 B>] Iterations / second: 19,124,847
[Random Write Vec <64 B>] Bytes handled per iteration: 64 bytes
[Random Write Vec <64 B>] Total bytes processed: 953.674 MiB
[Random Write Vec <64 B>] Throughput: 1.140 GiB/s
[Random Write Vec <64 B>] Avg single iteration: 52 ns
[Random Write Vec <64 B>] Avg single iteration cycles: 162.26
[Random Write Vec <64 B>] Time to process 1 MiB: 857 μs
[Random Write Vec <64 B>] Time to process 1 GiB: 878 ms
[Random Write Vec <64 B>] Time to process 1 TiB: 14.98 min
Matching tests with regex: syscall
Executing syscall_getpid..
[Sycall getpid(2)] Iterations in 5021 miliseconds, no overhead: 25,650,848
[Sycall getpid(2)] Iterations / second: 5,108,713
[Sycall getpid(2)] Avg single iteration: 195 ns
[Sycall getpid(2)] Avg single iteration cycles: 606.86
Executing syscall_time..
[Sycall gettimeofday(2)] Iterations in 5003 miliseconds, no overhead: 254,540,682
[Sycall gettimeofday(2)] Iterations / second: 50,877,609
[Sycall gettimeofday(2)] Avg single iteration: 19 ns
[Sycall gettimeofday(2)] Avg single iteration cycles: 60.94
Executing syscall_getrusage..
[Sycall getrusage(2)] Iterations in 5037 miliseconds, no overhead: 13,631,490
[Sycall getrusage(2)] Iterations / second: 2,706,271
[Sycall getrusage(2)] Avg single iteration: 369 ns
[Sycall getrusage(2)] Avg single iteration cycles: 1145.56
Executing syscall_stat..
[Sycall stat(2)] Iterations in 5035 miliseconds, no overhead: 9,631,926
[Sycall stat(2)] Iterations / second: 1,912,994
[Sycall stat(2)] Avg single iteration: 522 ns
[Sycall stat(2)] Avg single iteration cycles: 1620.51
**NOTE: Changed this to 1GiB (1024MiB)**
Executing sort..
[Sort <1024 MiB>] Iterations in 5050 miliseconds, no overhead: 1
[Sort <1024 MiB>] Iterations / second: 0
[Sort <1024 MiB>] Bytes handled per iteration: 1073741824 bytes
[Sort <1024 MiB>] Total bytes processed: 1024.000 MiB
[Sort <1024 MiB>] Throughput: 202.772 MiB/s
[Sort <1024 MiB>] Avg single iteration: 5.05 s
[Sort <1024 MiB>] Avg single iteration cycles: 15655409166.00
[Sort <1024 MiB>] Time to process 1 MiB: 4931 μs
[Sort <1024 MiB>] Time to process 1 GiB: 5.05 s
Executing hash_sha256..
[Sha256 <64 B>] Iterations in 5026 miliseconds, no overhead: 9,472,430
[Sha256 <64 B>] Iterations / second: 1,884,685
[Sha256 <64 B>] Bytes handled per iteration: 64 bytes
[Sha256 <64 B>] Total bytes processed: 578.151 MiB
[Sha256 <64 B>] Throughput: 115.032 MiB/s
[Sha256 <64 B>] Avg single iteration: 530 ns
[Sha256 <64 B>] Avg single iteration cycles: 1644.99
[Sha256 <64 B>] Time to process 1 MiB: 8 ms
[Sha256 <64 B>] Time to process 1 GiB: 8.90 s
[Sha256 <64 B>] Time to process 1 TiB: 2.53 hours
Executing hash_crc32..
[CRC32 <64 B>] Iterations in 5016 miliseconds, no overhead: 176,094,436
[CRC32 <64 B>] Iterations / second: 35,106,546
[CRC32 <64 B>] Bytes handled per iteration: 64 bytes
[CRC32 <64 B>] Total bytes processed: 10.496 GiB
[CRC32 <64 B>] Throughput: 2.093 GiB/s
[CRC32 <64 B>] Avg single iteration: 28 ns
[CRC32 <64 B>] Avg single iteration cycles: 88.31
[CRC32 <64 B>] Time to process 1 MiB: 466 μs
[CRC32 <64 B>] Time to process 1 GiB: 477 ms
[CRC32 <64 B>] Time to process 1 TiB: 8.15 min
Executing hash_siphash..
[SIPHash <64 B>] Iterations in 5040 miliseconds, no overhead: 205,525,700
[SIPHash <64 B>] Iterations / second: 40,778,908
[SIPHash <64 B>] Bytes handled per iteration: 64 bytes
[SIPHash <64 B>] Total bytes processed: 12.250 GiB
[SIPHash <64 B>] Throughput: 2.431 GiB/s
[SIPHash <64 B>] Avg single iteration: 24 ns
[SIPHash <64 B>] Avg single iteration cycles: 76.02
[SIPHash <64 B>] Time to process 1 MiB: 401 μs
[SIPHash <64 B>] Time to process 1 GiB: 411 ms
[SIPHash <64 B>] Time to process 1 TiB: 7.02 min
[Sort <1024 MiB>] Time to process 1 TiB: 1.44 hours
**Note: 1800GB SSD persistent**
Executing disk_write_sequential_fsync..
[Sequential Disk Write, Fsync <8 KiB>] Iterations in 5033 miliseconds, no overhead: 2,907
[Sequential Disk Write, Fsync <8 KiB>] Iterations / second: 577
[Sequential Disk Write, Fsync <8 KiB>] Bytes handled per iteration: 8192 bytes
[Sequential Disk Write, Fsync <8 KiB>] Total bytes processed: 22.711 MiB
[Sequential Disk Write, Fsync <8 KiB>] Throughput: 4.512 MiB/s
[Sequential Disk Write, Fsync <8 KiB>] Avg single iteration: 1731 μs
[Sequential Disk Write, Fsync <8 KiB>] Avg single iteration cycles: 5367675.33
[Sequential Disk Write, Fsync <8 KiB>] Time to process 1 MiB: 221 ms
[Sequential Disk Write, Fsync <8 KiB>] Time to process 1 GiB: 3.77 min
[Sequential Disk Write, Fsync <8 KiB>] Time to process 1 TiB: 64.56 hours
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment