{"action":"created","issue":{"url":"https://api.github.com/repos/baianat/vee-validate/issues/1207","repository_url":"https://api.github.com/repos/baianat/vee-validate","labels_url":"https://api.github.com/repos/baianat/vee-validate/issues/1207/labels{/name}","comments_url":"https://api.github.com/repos/baianat/vee-validate/issues/1207/comments","events_url":"https://api.github.com/repos/baianat/vee-validate/issues/1207/events","html_url":"https://github.com/baianat/vee-validate/issues/1207","id":303434494,"number":1207,"title":"Performance affected when adding vee-validate as a plugin","user":{"login":"epartipilo","id":4688744,"avatar_url":"https://avatars3.githubusercontent.com/u/4688744?v=4","gravatar_id":"","url":"https://api.github.com/users/epartipilo","html_url":"https://github.com/epartipilo","followers_url":"https://api.github.com/users/epartipilo/followers","following_url":"https://api.github.com/users/epartipilo/following{/other_user}","gists_url":"https://api.github.com/users/epartipilo/gists{/gist_id}","starred_url":"https://api.github.com/users/epartipilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epartipilo/subscriptions","organizations_url":"https://api.github.com/users/epartipilo/orgs","repos_url":"https://api.github.com/users/epartipilo/repos","events_url":"https://api.github.com/users/epartipilo/events{/privacy}","received_events_url":"https://api.github.com/users/epartipilo/received_events","type":"User","site_admin":false},"labels":[{"id":860795292,"url":"https://api.github.com/repos/baianat/vee-validate/labels/SSR","name":"SSR","color":"055282","default":false},{"id":860792840,"url":"https://api.github.com/repos/baianat/vee-validate/labels/performance","name":"performance","color":"2b0375","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-08T10:43:01Z","updated_at":"2018-03-09T17:45:37Z","closed_at":"2018-03-09T12:36:16Z","author_association":"NONE","body":"#### Versions:\r\n- VueJs: 2.5.13\r\n- Vee-Validate: 2.0.5\r\n- NuxtJs: 1.4.0\r\n\r\n### Description:\r\nI'm using docker for my Nuxt app\r\nWhen adding _vee-validate_ as a plugin  and using **Apache HTTP server benchmarking tool** with the instruction `ab -n 200 -c 5 https://localhost:3000/health-check` to simulate some requests\r\nthe responses are taking longer each time.\r\nMaybe is a bad usage of the library but this health-check page is also dummy\r\nComparing my container with and without the _vee-validate_ plugin I get these stats.\r\n\r\n| NAME | CPU % | MEM USAGE / LIMIT | MEM % | NET I/O | BLOCK I/O | PIDS |\r\n|-------|--------|----------------------|--------|---------|------------|------|\r\nw/o vee-validate\r\n|frontend|0.06%|170.3MiB / 1.952GiB|8.52%|1.26MB / 129MB|88.8MB / 0B|36\r\n|with vee-validate\r\nfrontend | 0.10% | 175.8MiB / 1.952GiB | 8.79% | 1.95MB / 194MB | 3.82MB / 0B | 36\r\n\r\nI'm not expert on this kind of test but is affecting seriously the performance of my app, I'm not sure where to look from here, numbers seems equal but the responses times have big differences.\r\n\r\nThis table shows the numbers after three attempts of the previous **ab** instruction\r\n\r\n*Percentage of the requests served within a certain time (ms)*\r\n**w/o vee-validate** vs **with vee-validate**\r\n\r\n| % | ms |  | % | ms |\r\n|---|----|-|---|----|\r\n| 50% | 195 | | 50% | 3017 |\r\n| 66% | 210 | | 66% | 3298 |\r\n| 75% | 222 | | 75% | 3776 |\r\n| 80% | 230 | | 80% | 3909 |\r\n| 90% | 253 | | 90% | 4074 |\r\n| 95% | 268 | | 95% | 4194 |\r\n| 98% | 280 | | 98% | 4243 |\r\n| 99% | 283 | | 99% | 4279 |\r\n| 100% | 284 (longest request) | | 100% | 4368 (longest request) |\r\n\r\nAny suggestion?\r\nHope this information is usefull\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/baianat/vee-validate/issues/comments/371888646","html_url":"https://github.com/baianat/vee-validate/issues/1207#issuecomment-371888646","issue_url":"https://api.github.com/repos/baianat/vee-validate/issues/1207","id":371888646,"user":{"login":"logaretm","id":6261322,"avatar_url":"https://avatars3.githubusercontent.com/u/6261322?v=4","gravatar_id":"","url":"https://api.github.com/users/logaretm","html_url":"https://github.com/logaretm","followers_url":"https://api.github.com/users/logaretm/followers","following_url":"https://api.github.com/users/logaretm/following{/other_user}","gists_url":"https://api.github.com/users/logaretm/gists{/gist_id}","starred_url":"https://api.github.com/users/logaretm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logaretm/subscriptions","organizations_url":"https://api.github.com/users/logaretm/orgs","repos_url":"https://api.github.com/users/logaretm/repos","events_url":"https://api.github.com/users/logaretm/events{/privacy}","received_events_url":"https://api.github.com/users/logaretm/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T17:45:37Z","updated_at":"2018-03-09T17:45:37Z","author_association":"COLLABORATOR","body":"No problem, I guess there should be a warning section for the nuxt based apps with veevalidate"}}
{"actor":{"display_login":"logaretm"}}