Skip to content

Commit

Permalink
Added version to CPU benchmark stubs.
Browse files Browse the repository at this point in the history
  • Loading branch information
eerimoq committed Jul 30, 2018
1 parent 27ab18b commit 9aecf90
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/benchmarks/json/cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ class parsita_json(object):
def parse_time(_json_string, _iterations):
return float('inf')

@staticmethod
def version():
return 'unknown'

try:
from parsers import parsy_json
except:
Expand All @@ -53,6 +57,10 @@ class parsy_json(object):
def parse_time(_json_string, _iterations):
return float('inf')

@staticmethod
def version():
return 'unknown'

try:
from parsers import pyleri_json
except:
Expand All @@ -62,6 +70,10 @@ class pyleri_json(object):
def parse_time(_json_string, _iterations):
return float('inf')

@staticmethod
def version():
return 'unknown'


SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
DATA_JSON = os.path.relpath(os.path.join(SCRIPT_DIR, 'data.json'))
Expand Down

0 comments on commit 9aecf90

Please sign in to comment.