diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2018-08-06 06:50:23 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2018-08-06 06:50:23 +0200 |
| commit | 48aafcc7ac34302a98649b19b67e9dd88f731f3c (patch) | |
| tree | db7733cf6fdfaa41bd765270e3437ae2a82bbe95 /_posts/2018-01-16-using-digitalocean-spaces-object-storage-with-fuse.md | |
| parent | 7c874cd09f4d0d6865f703fb9c5ced557159b26a (diff) | |
| download | mitjafelicijan.com-48aafcc7ac34302a98649b19b67e9dd88f731f3c.tar.gz | |
update
Diffstat (limited to '_posts/2018-01-16-using-digitalocean-spaces-object-storage-with-fuse.md')
| -rw-r--r-- | _posts/2018-01-16-using-digitalocean-spaces-object-storage-with-fuse.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/_posts/2018-01-16-using-digitalocean-spaces-object-storage-with-fuse.md b/_posts/2018-01-16-using-digitalocean-spaces-object-storage-with-fuse.md index 35cbebd..c172a9b 100644 --- a/_posts/2018-01-16-using-digitalocean-spaces-object-storage-with-fuse.md +++ b/_posts/2018-01-16-using-digitalocean-spaces-object-storage-with-fuse.md | |||
| @@ -146,12 +146,12 @@ import sqlite3 | |||
| 146 | import sys | 146 | import sys |
| 147 | 147 | ||
| 148 | if len(sys.argv) < 3: | 148 | if len(sys.argv) < 3: |
| 149 | print("usage: python sqlite-benchmark.py DB_PATH NUM_RECORDS REPEAT") | 149 | print("usage: python sqlite-benchmark.py DB_PATH NUM_RECORDS REPEAT") |
| 150 | exit() | 150 | exit() |
| 151 | 151 | ||
| 152 | def data_iter(x): | 152 | def data_iter(x): |
| 153 | for i in range(x): | 153 | for i in range(x): |
| 154 | yield "m" + str(i), "f" + str(i*i) | 154 | yield "m" + str(i), "f" + str(i*i) |
| 155 | 155 | ||
| 156 | header_line = "%s\t%s\t%s\t%s\t%s\n" % ("DROPTABLE", "CREATETABLE", "INSERTMANY", "FETCHALL", "COMMIT") | 156 | header_line = "%s\t%s\t%s\t%s\t%s\n" % ("DROPTABLE", "CREATETABLE", "INSERTMANY", "FETCHALL", "COMMIT") |
| 157 | with open("sqlite-benchmarks.tsv", "w") as fp: | 157 | with open("sqlite-benchmarks.tsv", "w") as fp: |
