import subprocess
import timeit

def run_diff_once():
    f1 = 'example-notebooks/diff/0/before.ipynb'
    f2 = 'example-notebooks/diff/0/after.ipynb'

    subprocess.call(['nbdiff', '--check', f1, f2])


if __name__ == '__main__':
    t = timeit.Timer('run_diff_once()', setup='from __main__ import *')
    print t.repeat(repeat=100, number=1)


@@ -297,9 +297,21 @@
 ort 
-*
+run_diff_once
 ')%0A 
@@ -339,10 +339,9 @@
 eat=
-10
+4
 0, n

fix warning in perf test