erwanvivien / fast_qr

Ultra fast QRCode generation
https://fast-qr.com/
MIT License
197 stars 29 forks source link

Benchmarking fails in ubuntu #30

Closed akhildevelops closed 1 year ago

akhildevelops commented 1 year ago

Benchmarking fails in ubuntu with below error:

vscode ➜ /workspaces/fast_qr (master) $ /bin/python3.11 /workspaces/fast_qr/benches/bench.py
| Benchmark                | Lower     | Estimate  | Upper     |                          |
|:------------------------ |:---------:|:---------:|:---------:| ------------------------ |
Traceback (most recent call last):
  File "/workspaces/fast_qr/benches/bench.py", line 90, in <module>
    f"| {test2:<24} | {data2[0]:<9} | {data2[1]:<9} | {data2[2]:<9} |",
                       ~~~~~^^^
IndexError: list index out of range

After debugging found that microsecond is represented as u instead of unicode char µ. This is not helping to extract microseconds value from the output of criterion benchmark.

erwanvivien commented 1 year ago

Good catch!