Skip to content

Commit

Permalink
added qtoml to benchmark (#43)
Browse files Browse the repository at this point in the history
also removed and re-added toml++ submodule with correct https URI, because the previous URI causes clone failures for some remotes
(more info here: https://stackoverflow.com/questions/13509293/git-fatal-could-not-read-from-remote-repository)
  • Loading branch information
marzer authored Aug 17, 2020
1 parent 3de65c3 commit 4b3957c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
url = https://github.com/BurntSushi/toml-test.git
[submodule "third_party/tomlplusplus"]
path = third_party/tomlplusplus
url = git@github.com:marzer/tomlplusplus.git
url = https://github.com/marzer/tomlplusplus.git
1 change: 1 addition & 0 deletions benchmark/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
toml
tomlkit
qtoml
2 changes: 2 additions & 0 deletions benchmark/run.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pytomlpp
import toml
import tomlkit
import qtoml
import timeit

def benchmark(name, func, number=5000):
Expand All @@ -14,4 +15,5 @@ def benchmark(name, func, number=5000):

benchmark('pytomlpp', lambda: pytomlpp.loads(test_data))
benchmark('toml', lambda: toml.loads(test_data))
benchmark('qtoml', lambda: qtoml.loads(test_data))
benchmark('tomlkit', lambda: tomlkit.parse(test_data))
2 changes: 1 addition & 1 deletion third_party/tomlplusplus

0 comments on commit 4b3957c

Please sign in to comment.