{"action":"created","comment":{"url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/pulls/comments/64487279","id":64487279,"diff_hunk":"@@ -0,0 +1,53 @@\n+﻿module ArrayGPU.TimeTests\r\n+open FSharp.Charting\r\n+open System.Drawing\r\n+open System.Windows.Forms\r\n+\r\n+let diagram f i = \r\n+    let arr1 = [|for j in 1..i -> j|]\r\n+    let time1 = System.DateTime.Now\r\n+    let t = ArrayGPU.init arr1\r\n+    let time2 = System.DateTime.Now\r\n+    let outarr = f arr1 t\r\n+    let time3 = System.DateTime.Now\r\n+    let outarr = ArrayGPU.getResult outarr t\r\n+    let time4 = System.DateTime.Now\r\n+    let d = Chart.Pie [\"initialization\", (time2 - time1).TotalMilliseconds; \"function\", (time3 - time2).TotalMilliseconds; \"getting result\", (time4 - time3).TotalMilliseconds]\r\n+    do System.Windows.Forms.Application.Run (d.ShowChart())\r\n+\r\n+diagram (ArrayGPU.Map <@ fun x -> x + 1 @>) 10000000 |> ignore\r\n+\r\n+\r\n+let timer1 f i = //for Array and Array.Parallel\r\n+    if i = 0 then 0.00\r\n+    else\r\n+        let arr1 = [|for j in 1..i -> j|]\r\n+        //let arr2 = [|for j in 1..i -> j|]\r\n+        let time f =\r\n+            let beg = System.DateTime.Now\r\n+            for i in 1..3 do f() |> ignore \r\n+            ((System.DateTime.Now - beg).TotalMilliseconds) / 3.00\r","path":"Source/ArrayFun.TimeTests/ArrayGPU.TimeTests.fs","position":29,"original_position":29,"commit_id":"233e8342e20c297791b9be72c144423babc79708","original_commit_id":"233e8342e20c297791b9be72c144423babc79708","user":{"login":"gsvgit","id":106816,"avatar_url":"https://avatars.githubusercontent.com/u/106816?v=3","gravatar_id":"","url":"https://api.github.com/users/gsvgit","html_url":"https://github.com/gsvgit","followers_url":"https://api.github.com/users/gsvgit/followers","following_url":"https://api.github.com/users/gsvgit/following{/other_user}","gists_url":"https://api.github.com/users/gsvgit/gists{/gist_id}","starred_url":"https://api.github.com/users/gsvgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsvgit/subscriptions","organizations_url":"https://api.github.com/users/gsvgit/orgs","repos_url":"https://api.github.com/users/gsvgit/repos","events_url":"https://api.github.com/users/gsvgit/events{/privacy}","received_events_url":"https://api.github.com/users/gsvgit/received_events","type":"User","site_admin":false},"body":"А почему бы не завести общую  константу \"количество итераций\"?","created_at":"2016-05-24T22:35:58Z","updated_at":"2016-05-24T22:35:58Z","html_url":"https://github.com/YaccConstructor/Brahma.FSharp/pull/23#discussion_r64487279","pull_request_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/pulls/comments/64487279"},"html":{"href":"https://github.com/YaccConstructor/Brahma.FSharp/pull/23#discussion_r64487279"},"pull_request":{"href":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/pulls/23","id":70120245,"html_url":"https://github.com/YaccConstructor/Brahma.FSharp/pull/23","diff_url":"https://github.com/YaccConstructor/Brahma.FSharp/pull/23.diff","patch_url":"https://github.com/YaccConstructor/Brahma.FSharp/pull/23.patch","issue_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/issues/23","number":23,"state":"open","locked":false,"title":"map, mapi, map2, reverse (functions + tests)","user":{"login":"LuninaPolina","id":17449563,"avatar_url":"https://avatars.githubusercontent.com/u/17449563?v=3","gravatar_id":"","url":"https://api.github.com/users/LuninaPolina","html_url":"https://github.com/LuninaPolina","followers_url":"https://api.github.com/users/LuninaPolina/followers","following_url":"https://api.github.com/users/LuninaPolina/following{/other_user}","gists_url":"https://api.github.com/users/LuninaPolina/gists{/gist_id}","starred_url":"https://api.github.com/users/LuninaPolina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuninaPolina/subscriptions","organizations_url":"https://api.github.com/users/LuninaPolina/orgs","repos_url":"https://api.github.com/users/LuninaPolina/repos","events_url":"https://api.github.com/users/LuninaPolina/events{/privacy}","received_events_url":"https://api.github.com/users/LuninaPolina/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-15T12:42:39Z","updated_at":"2016-05-24T22:35:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2fe87b414702647ca391b7d2ca03fd3de5aa4477","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/pulls/23/commits","review_comments_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/pulls/23/comments","review_comment_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/issues/23/comments","statuses_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/statuses/233e8342e20c297791b9be72c144423babc79708","head":{"label":"LuninaPolina:143","ref":"143","sha":"233e8342e20c297791b9be72c144423babc79708","user":{"login":"LuninaPolina","id":17449563,"avatar_url":"https://avatars.githubusercontent.com/u/17449563?v=3","gravatar_id":"","url":"https://api.github.com/users/LuninaPolina","html_url":"https://github.com/LuninaPolina","followers_url":"https://api.github.com/users/LuninaPolina/followers","following_url":"https://api.github.com/users/LuninaPolina/following{/other_user}","gists_url":"https://api.github.com/users/LuninaPolina/gists{/gist_id}","starred_url":"https://api.github.com/users/LuninaPolina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuninaPolina/subscriptions","organizations_url":"https://api.github.com/users/LuninaPolina/orgs","repos_url":"https://api.github.com/users/LuninaPolina/repos","events_url":"https://api.github.com/users/LuninaPolina/events{/privacy}","received_events_url":"https://api.github.com/users/LuninaPolina/received_events","type":"User","site_admin":false},"repo":{"id":52978233,"name":"Brahma.FSharp","full_name":"LuninaPolina/Brahma.FSharp","owner":{"login":"LuninaPolina","id":17449563,"avatar_url":"https://avatars.githubusercontent.com/u/17449563?v=3","gravatar_id":"","url":"https://api.github.com/users/LuninaPolina","html_url":"https://github.com/LuninaPolina","followers_url":"https://api.github.com/users/LuninaPolina/followers","following_url":"https://api.github.com/users/LuninaPolina/following{/other_user}","gists_url":"https://api.github.com/users/LuninaPolina/gists{/gist_id}","starred_url":"https://api.github.com/users/LuninaPolina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuninaPolina/subscriptions","organizations_url":"https://api.github.com/users/LuninaPolina/orgs","repos_url":"https://api.github.com/users/LuninaPolina/repos","events_url":"https://api.github.com/users/LuninaPolina/events{/privacy}","received_events_url":"https://api.github.com/users/LuninaPolina/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LuninaPolina/Brahma.FSharp","description":"F# quotation to OpenCL translator. Based on Brahma library.","fork":true,"url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp","forks_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/forks","keys_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/teams","hooks_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/hooks","issue_events_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/issues/events{/number}","events_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/events","assignees_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/assignees{/user}","branches_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/branches{/branch}","tags_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/tags","blobs_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/git/refs{/sha}","trees_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/statuses/{sha}","languages_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/languages","stargazers_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/stargazers","contributors_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/contributors","subscribers_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/subscribers","subscription_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/subscription","commits_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/commits{/sha}","git_commits_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/git/commits{/sha}","comments_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/comments{/number}","issue_comment_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/issues/comments{/number}","contents_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/contents/{+path}","compare_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/merges","archive_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/downloads","issues_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/issues{/number}","pulls_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/pulls{/number}","milestones_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/milestones{/number}","notifications_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/labels{/name}","releases_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/releases{/id}","deployments_url":"https://api.github.com/repos/LuninaPolina/Brahma.FSharp/deployments","created_at":"2016-03-02T16:29:47Z","updated_at":"2016-03-02T16:29:48Z","pushed_at":"2016-05-22T20:37:24Z","git_url":"git://github.com/LuninaPolina/Brahma.FSharp.git","ssh_url":"git@github.com:LuninaPolina/Brahma.FSharp.git","clone_url":"https://github.com/LuninaPolina/Brahma.FSharp.git","svn_url":"https://github.com/LuninaPolina/Brahma.FSharp","homepage":"https://sites.google.com/site/semathsrprojects/home/brahma-fsharp","size":62268,"stargazers_count":0,"watchers_count":0,"language":"F#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"YaccConstructor:143","ref":"143","sha":"a4499ff97207fa3398671ab24c0f7afe987a5122","user":{"login":"YaccConstructor","id":6095386,"avatar_url":"https://avatars.githubusercontent.com/u/6095386?v=3","gravatar_id":"","url":"https://api.github.com/users/YaccConstructor","html_url":"https://github.com/YaccConstructor","followers_url":"https://api.github.com/users/YaccConstructor/followers","following_url":"https://api.github.com/users/YaccConstructor/following{/other_user}","gists_url":"https://api.github.com/users/YaccConstructor/gists{/gist_id}","starred_url":"https://api.github.com/users/YaccConstructor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YaccConstructor/subscriptions","organizations_url":"https://api.github.com/users/YaccConstructor/orgs","repos_url":"https://api.github.com/users/YaccConstructor/repos","events_url":"https://api.github.com/users/YaccConstructor/events{/privacy}","received_events_url":"https://api.github.com/users/YaccConstructor/received_events","type":"Organization","site_admin":false},"repo":{"id":37526337,"name":"Brahma.FSharp","full_name":"YaccConstructor/Brahma.FSharp","owner":{"login":"YaccConstructor","id":6095386,"avatar_url":"https://avatars.githubusercontent.com/u/6095386?v=3","gravatar_id":"","url":"https://api.github.com/users/YaccConstructor","html_url":"https://github.com/YaccConstructor","followers_url":"https://api.github.com/users/YaccConstructor/followers","following_url":"https://api.github.com/users/YaccConstructor/following{/other_user}","gists_url":"https://api.github.com/users/YaccConstructor/gists{/gist_id}","starred_url":"https://api.github.com/users/YaccConstructor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YaccConstructor/subscriptions","organizations_url":"https://api.github.com/users/YaccConstructor/orgs","repos_url":"https://api.github.com/users/YaccConstructor/repos","events_url":"https://api.github.com/users/YaccConstructor/events{/privacy}","received_events_url":"https://api.github.com/users/YaccConstructor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/YaccConstructor/Brahma.FSharp","description":"F# quotation to OpenCL translator. Based on Brahma library.","fork":true,"url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp","forks_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/forks","keys_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/teams","hooks_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/hooks","issue_events_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/issues/events{/number}","events_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/events","assignees_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/assignees{/user}","branches_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/branches{/branch}","tags_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/tags","blobs_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/git/refs{/sha}","trees_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/statuses/{sha}","languages_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/languages","stargazers_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/stargazers","contributors_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/contributors","subscribers_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/subscribers","subscription_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/subscription","commits_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/commits{/sha}","git_commits_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/git/commits{/sha}","comments_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/comments{/number}","issue_comment_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/issues/comments{/number}","contents_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/contents/{+path}","compare_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/merges","archive_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/downloads","issues_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/issues{/number}","pulls_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/pulls{/number}","milestones_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/milestones{/number}","notifications_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/labels{/name}","releases_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/releases{/id}","deployments_url":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/deployments","created_at":"2015-06-16T11:34:38Z","updated_at":"2015-07-22T13:56:16Z","pushed_at":"2016-05-24T21:36:57Z","git_url":"git://github.com/YaccConstructor/Brahma.FSharp.git","ssh_url":"git@github.com:YaccConstructor/Brahma.FSharp.git","clone_url":"https://github.com/YaccConstructor/Brahma.FSharp.git","svn_url":"https://github.com/YaccConstructor/Brahma.FSharp","homepage":"https://sites.google.com/site/semathsrprojects/home/brahma-fsharp","size":62242,"stargazers_count":0,"watchers_count":0,"language":"F#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":18,"forks":6,"open_issues":18,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/pulls/23"},"html":{"href":"https://github.com/YaccConstructor/Brahma.FSharp/pull/23"},"issue":{"href":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/issues/23"},"comments":{"href":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/YaccConstructor/Brahma.FSharp/statuses/233e8342e20c297791b9be72c144423babc79708"}}}}
{"actor":{"display_login":"gsvgit"}}