Skip to content

Commit

Permalink
benchmark: Skeleton script
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnor committed Sep 7, 2024
1 parent d3cba85 commit b3d5323
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions examples/benchmark/benchmark_readwrite.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

import time
import io

import npyfile


def main():

# do X repetitions of each
# measure total runtime
# compute kB/second
# print human formatted per test
# output a CSV with machine readable results at end

# write file to memory. io.BytesIO
# write file to disk. open

# read file from memory
# read file from disk


# run for different chunk sizes
# 1, 16, 256, 4096


if __name__ == '__main__':
main()

0 comments on commit b3d5323

Please sign in to comment.