Skip to content

Instantly share code, notes, and snippets.

@lvh
Created May 28, 2013 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lvh/9059ae79bc3ba7b10f73 to your computer and use it in GitHub Desktop.
Save lvh/9059ae79bc3ba7b10f73 to your computer and use it in GitHub Desktop.
(pypy)axiombench git:master ❯ bin/axiombench
10000 iterations per batch, batches of 5
Running axiombench.insert:
Inserts items into the given store.
in-memory, best of 5: 1.47483491898
(roughly 6780.41987706/s)
on disk, best of 5: 1.46651887894
(roughly 6818.86891715/s)
Running axiombench.query:
Iterates over all of the referreds, and then iterates over all of the
referrers that refer to each one.
Fairly item instantiation heavy.
Traceback (most recent call last):
File "app_main.py", line 72, in run_toplevel
File "bin/axiombench", line 41, in <module>
runBenchmarks()
File "bin/axiombench", line 35, in runBenchmarks
best = min(timed(benchmark, target, n) for _ in xrange(batches))
File "bin/axiombench", line 35, in <genexpr>
best = min(timed(benchmark, target, n) for _ in xrange(batches))
File "bin/axiombench", line 12, in timed
f(*a, **kw)
File "/Users/lvh/Code/axiombench/axiombench/query.py", line 31, in benchmark
for _reference in store.query(R, R.reference == referred):
File "/Users/lvh/Code/axiombench/.tox/pypy/site-packages/axiom/store.py", line 368, in _selectStuff
yield self._massageData(row)
File "/Users/lvh/Code/axiombench/.tox/pypy/site-packages/axiom/store.py", line 577, in _massageData
result = self.store._loadedItem(self.tableClass, row[0], row[1:])
File "/Users/lvh/Code/axiombench/.tox/pypy/site-packages/axiom/store.py", line 1745, in _loadedItem
result = self.objectCache.get(storeID)
File "/Users/lvh/Code/axiombench/.tox/pypy/site-packages/axiom/_fincache.py", line 87, in get
"FinalizingCache has %r but its value is no more." % (key,))
CacheFault: FinalizingCache has 51721 but its value is no more.
(pypy)axiombench git:master ❯ pip uninstall Axiom && pip install -e ~/Code/Divmod/829879-pypy-finalization-semantics/Axiom ⏎
Uninstalling Axiom:
... file list omitted for brevity ...
Proceed (y/n)? y
Successfully uninstalled Axiom
Obtaining file:///Users/lvh/Code/Divmod/829879-pypy-finalization-semantics/Axiom
... file list omitted for brevity ...
Installing collected packages: Axiom
... file list omitted for brevity ...
Installed /Users/lvh/Code/Divmod/829879-pypy-finalization-semantics/Axiom
Successfully installed Axiom
Cleaning up...
(pypy)axiombench git:master ❯ bin/axiombench
10000 iterations per batch, batches of 5
Running axiombench.insert:
Inserts items into the given store.
in-memory, best of 5: 1.5060338974
(roughly 6639.956788/s)
on disk, best of 5: 1.52855491638
(roughly 6542.12674522/s)
Running axiombench.query:
Iterates over all of the referreds, and then iterates over all of the
referrers that refer to each one.
Fairly item instantiation heavy.
in-memory, best of 5: 0.257821083069
(roughly 38786.5875086/s)
on disk, best of 5: 0.236177921295
(roughly 42340.9603453/s)
Running axiombench.update:
Increments an integer count n times.
in-memory, best of 5: 0.665887832642
(roughly 15017.5442617/s)
on disk, best of 5: 0.638725042343
(roughly 15656.1890282/s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment