Skip to content

Instantly share code, notes, and snippets.

@amyreese
Created October 28, 2018 20:57
Show Gist options
  • Save amyreese/833be89554f780be4d3ad77f6fcce780 to your computer and use it in GitHub Desktop.
Save amyreese/833be89554f780be4d3ad77f6fcce780 to your computer and use it in GitHub Desktop.
(.venv) jreese@legion ~/workspace/aiosqlite master » make perf
python3 -m unittest -v tests.perf
Running perf tests for at least 2.0s each...
test_atomics (tests.perf.PerfTest) ... ok
test_insert_ids (tests.perf.PerfTest) ... ok
test_insert_macro_ids (tests.perf.PerfTest) ... ok
test_inserts (tests.perf.PerfTest) ... ok
test_select (tests.perf.PerfTest) ... ok
test_select_macro (tests.perf.PerfTest) ... ok
Perf Test Iterations Duration Rate
atomics 7768 2.0s 3883.6/s
insert_ids 5521 2.0s 2760.2/s
insert_macro_ids 10164 2.0s 5081.5/s
inserts 10328 2.0s 5163.4/s
select 8526 2.0s 4262.2/s
select_macro 13403 2.0s 6700.5/s
----------------------------------------------------------------------
Ran 6 tests in 12.035s
OK
(.venv) jreese@legion ~/workspace/aiosqlite faster_connection » make perf
python3 -m unittest -v tests.perf
Running perf tests for at least 2.0s each...
test_atomics (tests.perf.PerfTest) ... ok
test_insert_ids (tests.perf.PerfTest) ... ok
test_insert_macro_ids (tests.perf.PerfTest) ... ok
test_inserts (tests.perf.PerfTest) ... ok
test_select (tests.perf.PerfTest) ... ok
test_select_macro (tests.perf.PerfTest) ... ok
Perf Test Iterations Duration Rate
atomics 5247 2.0s 2623.3/s
insert_ids 3798 2.0s 1898.7/s
insert_macro_ids 7175 2.0s 3586.9/s
inserts 7253 2.0s 3625.8/s
select 6182 2.0s 3090.3/s
select_macro 9995 2.0s 4996.8/s
----------------------------------------------------------------------
Ran 6 tests in 12.045s
OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment