diff options
Diffstat (limited to 'skate/unstructured_test.go')
-rw-r--r-- | skate/unstructured_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/skate/unstructured_test.go b/skate/unstructured_test.go index 41ff471..92f1d80 100644 --- a/skate/unstructured_test.go +++ b/skate/unstructured_test.go @@ -52,3 +52,14 @@ func TestParseUnstructured(t *testing.T) { } } } + +func BenchmarkParseUnstructured(b *testing.B) { + ref := Ref{ + Biblio: Biblio{ + Unstructured: "https://arxiv.org/pdf/0808.3320v3.pdf Hello 10.1111/j.1550-7408.1968.tb02138.x-BIB5", + }, + } + for n := 0; n < b.N; n++ { + ParseUnstructured(&ref) + } +} |