import os, sys

sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
import glob
import fnmatch
import traceback
import logging

import numpy
import pytest

import lasio

test_dir = os.path.dirname(__file__)

egfn = lambda fn: os.path.join(os.path.dirname(__file__), "examples", fn)
stegfn = lambda vers, fn: os.path.join(os.path.dirname(__file__), "examples", vers, fn)

logger = logging.getLogger(__name__)


def test_read_v12_sample_big():
    l = lasio.read(stegfn("1.2", "sample_big.las"))

import os, sys

sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
import glob
import fnmatch
import traceback
import logging

import numpy
import pytest

import lasio

test_dir = os.path.dirname(__file__)

egfn = lambda fn: os.path.join(os.path.dirname(__file__), "examples", fn)
stegfn = lambda vers, fn: os.path.join(os.path.dirname(__file__), "examples", vers, fn)

logger = logging.getLogger(__name__)


def read_file():
    las = lasio.read(stegfn("1.2", "sample_big.las"))

def test_read_v12_sample_big(benchmark):
    benchmark(read_file)

Add benchmark test for the speed of reading a LAS file
Add benchmark test for the speed of reading a LAS file

To run it you need to have `pytest-benchmark` installed, and
run the tests using:

```
$ pytest lasio/tests/tests_speed.py
```

To compare two branches, you need to run and store the benchmark from the first branch e.g. master
and then run and compare the benchmark from the second branch. e.g.

```
$ git checkout master
$ mkdir ..\lasio-benchmarks
$ pytest tests/\test_speed.py --benchmark-autosave --benchmark-storage ..\lasio-benchmarks --benchmark-compare
