Skip to content

Commit

Permalink
brench: Actually remove soft comparison code
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsyo committed Aug 31, 2023
1 parent a1108fc commit 207c0ae
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions brench/brench.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import os
from concurrent import futures
import glob
from itertools import zip_longest

__version__ = '1.0.0'

Expand Down Expand Up @@ -47,15 +46,6 @@ def run_pipe(cmds, input, timeout):
proc.kill()


def compare_output(o1, o2, ε=0.0):
def cmp(x, y):
try:
return abs(float(x) - float(y)) <= ε
except (ValueError, TypeError):
return x == y
return all(cmp(x, y) for x, y in zip_longest(o1.split(), o2.split()))


def run_bench(pipeline, fn, timeout):
"""Run a single benchmark pipeline.
"""
Expand Down

0 comments on commit 207c0ae

Please sign in to comment.