{"action":"created","issue":{"url":"https://api.github.com/repos/PerfDotNet/BenchmarkDotNet/issues/20","labels_url":"https://api.github.com/repos/PerfDotNet/BenchmarkDotNet/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/PerfDotNet/BenchmarkDotNet/issues/20/comments","events_url":"https://api.github.com/repos/PerfDotNet/BenchmarkDotNet/issues/20/events","html_url":"https://github.com/PerfDotNet/BenchmarkDotNet/issues/20","id":98557065,"number":20,"title":"Поддержка Roslyn Analysis ?","user":{"login":"anykeysas","id":353916,"avatar_url":"https://avatars.githubusercontent.com/u/353916?v=3","gravatar_id":"","url":"https://api.github.com/users/anykeysas","html_url":"https://github.com/anykeysas","followers_url":"https://api.github.com/users/anykeysas/followers","following_url":"https://api.github.com/users/anykeysas/following{/other_user}","gists_url":"https://api.github.com/users/anykeysas/gists{/gist_id}","starred_url":"https://api.github.com/users/anykeysas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anykeysas/subscriptions","organizations_url":"https://api.github.com/users/anykeysas/orgs","repos_url":"https://api.github.com/users/anykeysas/repos","events_url":"https://api.github.com/users/anykeysas/events{/privacy}","received_events_url":"https://api.github.com/users/anykeysas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-01T19:25:50Z","updated_at":"2015-08-01T20:16:30Z","closed_at":null,"body":"А есть ли возможность использовав анализатор  выражений Roslyn автоматом обвязывать код тестируемого приложения бенчмарками? \r\nВообще насколько была бы полезной такая фича? "},"comment":{"url":"https://api.github.com/repos/PerfDotNet/BenchmarkDotNet/issues/comments/126949794","html_url":"https://github.com/PerfDotNet/BenchmarkDotNet/issues/20#issuecomment-126949794","issue_url":"https://api.github.com/repos/PerfDotNet/BenchmarkDotNet/issues/20","id":126949794,"user":{"login":"AndreyAkinshin","id":2259237,"avatar_url":"https://avatars.githubusercontent.com/u/2259237?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreyAkinshin","html_url":"https://github.com/AndreyAkinshin","followers_url":"https://api.github.com/users/AndreyAkinshin/followers","following_url":"https://api.github.com/users/AndreyAkinshin/following{/other_user}","gists_url":"https://api.github.com/users/AndreyAkinshin/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreyAkinshin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreyAkinshin/subscriptions","organizations_url":"https://api.github.com/users/AndreyAkinshin/orgs","repos_url":"https://api.github.com/users/AndreyAkinshin/repos","events_url":"https://api.github.com/users/AndreyAkinshin/events{/privacy}","received_events_url":"https://api.github.com/users/AndreyAkinshin/received_events","type":"User","site_admin":false},"created_at":"2015-08-01T20:16:30Z","updated_at":"2015-08-01T20:16:30Z","body":"Мне думается, что вы описываете очень частный случай, не очень представляю, как тут можно сделать универсальное решение. Скоро в BenchmarkDotNet появится параметризация (#8), на её основе с помощью рефлексии вашу идею можно будет реализовать в несколько строк.\r\nПо поводу запихивания бенчмарков в юнит-тесты тоже смысла не вижу: что в таких тестах будет проверяться?"}}