diff --git a/bench/Tagging.hs b/bench/Tagging.hs index 9dbee0b5d..0f8c44fc4 100644 --- a/bench/Tagging.hs +++ b/bench/Tagging.hs @@ -35,8 +35,9 @@ import Semantic.Task.Files benchmarks :: Benchmark benchmarks = bgroup "tagging" - [ pythonBenchmarks - , goBenchmarks + -- [ pythonBenchmarks + -- , goBenchmarks + [ rubyBenchmarks ] pythonBenchmarks :: Benchmark @@ -53,6 +54,13 @@ goBenchmarks = bgroup "go" ] where dir = Path.relDir "tmp/go-examples/go/src/database/sql" +rubyBenchmarks :: Benchmark +rubyBenchmarks = bgroup "ruby" + [ bench "precise" $ runTagging preciseLanguageModes dir "*.rb" + , bench "a la carte" $ runTagging aLaCarteLanguageModes dir "*.rb" + ] + where dir = Path.relDir "tmp/ruby-examples/ruby_spec/language" + runTagging :: PerLanguageModes -> Path.RelDir -> String -> Benchmarkable runTagging mode dir glob = nfIO . withOptions testOptions $ \ config logger statter -> do let session = TaskSession config "-" False logger statter