{"id":298892,"date":"2020-02-18T21:00:08","date_gmt":"2020-02-18T21:00:08","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=298892"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=298892","title":{"rendered":"\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 REST API \u043d\u0430 Golang. 56000 [#\/sec] \u043d\u0435 \u043f\u0440\u0435\u0434\u0435\u043b?"},"content":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/488948\/\">\n<p>\u041d\u0430 \u0433\u043b\u0430\u0437\u0430 \u043f\u043e\u043f\u0430\u043b\u0430\u0441\u044c \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u043f\u043e\u0437\u0438\u0442\u0438\u0432\u043d\u043e\u0435 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 <a href=\"https:\/\/habr.com\/ru\/post\/424649\/\">Java vs GO. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439<\/a>. <\/p>\n<p>  <\/p>\n<p>\u0420\u0435\u0448\u0438\u043b \u0441\u0430\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043b\u0438 \u0442\u0430\u043a \u0432\u0441\u0435 \u043d\u0435 \u0440\u0430\u0434\u0443\u0436\u043d\u043e \u0441 Go.<br \/>  \u0417\u0430\u0431\u0435\u0433\u0430\u044f \u0432\u043f\u0435\u0440\u0435\u0434 \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u043f\u0440\u0438 \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 JSON &quot;\u043d\u0430 \u043b\u0435\u0442\u0443&quot; \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e 56000 [#\/sec] \u043d\u0430 4 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u044f\u0434\u0440\u0430.<br \/>  \u0418 \u043d\u0435 \u043e\u0434\u043d\u043e\u0433\u043e Failed requests \u0432\u043f\u043b\u043e\u0442\u044c \u0434\u043e 4096 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439. <\/p>\n<p>  <\/p>\n<p>\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 GET \u0437\u0430\u043f\u0440\u043e\u0441\u0430: <\/p>\n<p>  <\/p>\n<ul>\n<li>\u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u044b \u0432 in memory \u043a\u044d\u0448\u0435 \u0438 \u043e\u043d\u0438 \u0432\u0430\u043b\u0438\u0434\u043d\u044b\u0435, \u0442\u043e \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c JSON \u0438\u0437 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/li>\n<li>\u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043a\u044d\u0448\u0435 \u043d\u0435\u0442, \u0442\u043e \u0438\u0449\u0435\u043c \u0438\u0445 \u0432 Bolt DB, \u0435\u0441\u043b\u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u043c, \u0442\u043e \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 JSON <\/li>\n<li>\u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435\u0442 \u0432 Bolt DB, \u0442\u043e \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u0438\u0445 \u0438\u0437 \u0411\u0414, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438\u0445 \u0432 in memory \u043a\u044d\u0448\u0435<\/li>\n<li>\u0414\u0430\u043d\u043d\u044b\u0435 \u0432 in memory \u043a\u044d\u0448\u0435 \u043d\u0430\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u0431\u0443\u0444\u0435\u0440\u043d\u043e\u043c \u043a\u0430\u043d\u0430\u043b\u0435, \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u043e\u043a\u043e\u043b\u043e 10000 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043e\u043d\u0438 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0435\u0434\u0438\u043d\u044b\u043c save \u0432 Bolt DB<\/li>\n<li>\u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0411\u0414 \u043c\u0435\u043d\u044f\u043b\u0438\u0441\u044c (update \/ insert) \u0442\u043e \u0447\u0435\u0440\u0435\u0437 pg_notify \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u0442\u0441\u044f \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043a\u044d\u0448\u0435 \u043f\u043e\u043c\u0435\u0447\u0430\u043b\u0438\u0441\u044c \u043a\u0430\u043a \u043d\u0435\u0432\u0430\u043b\u0438\u0434\u043d\u044b\u0435 \u0438 \u043f\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043e\u043d\u0438 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u0437\u0430\u043d\u043e\u0432\u043e \u0438\u0437 \u0411\u0414 <\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0442\u0430\u043a \u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u043f\u043e <a href=\"https:\/\/github.com\/romapres2010\/resttest\/tree\/master\/cmd\/restDept\/Apach%20benchmark\" rel=\"nofollow\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a><br \/>  \u041a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d \u043a\u043e\u0434 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u0442\u0435\u043d\u0434\u0430 \u2014 \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043d\u0430 <a href=\"https:\/\/github.com\/romapres2010\/resttest\" rel=\"nofollow\">GitHub<\/a>.<br \/>  \u041a\u043e\u0434\u0430 \u043c\u043d\u043e\u0433\u043e \u043e\u043a\u043e\u043b\u043e 4000 \u0441\u0442\u0440\u043e\u043a, \u043d\u043e \u043d\u0438 \u0447\u0435\u0433\u043e \u0441\u0443\u043f\u0435\u0440 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u043d\u0435 \u0431\u044b\u043b\u043e.<br \/>  \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0440\u0430\u0437\u0432\u0435 \u0447\u0442\u043e \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0439 <a href=\"https:\/\/github.com\/francoispqt\/gojay\" rel=\"nofollow\">JSON encoder\/decode<\/a> \u2014 \u044d\u0442\u043e \u0443\u0441\u043a\u043e\u0440\u0438\u043b\u043e \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 JSON \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432 2 \u0440\u0430\u0437\u0430. <\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h2 id=\"rezultaty-testirovaniya\">\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/h2>\n<p>  <\/p>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0442\u0435\u043d\u0434\u0430 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0411\u0414 PostgreSQL 11 \u043f\u043e\u0434 Windows 10<\/li>\n<li>\u0414\u0432\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u2014 \u043c\u0430\u0441\u0442\u0435\u0440 \u0434\u043e 10 000 000 \u0441\u0442\u0440\u043e\u043a, \u043f\u043e\u0434\u0447\u0438\u043d\u0435\u043d\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 100 000 000 \u0441\u0442\u0440\u043e\u043a<\/li>\n<li>\u0420\u0430\u0437\u043c\u0435\u0440 JSON \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f 1500 \u0431\u0430\u0439\u0442, \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u0437 1 \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 10 \u043f\u043e\u0434\u0447\u0438\u043d\u0435\u043d\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u043a<\/li>\n<li>\u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u2014 core i7 \u2014 4 core (8 thread), 16 \u0413\u0431\u0430\u0439\u0442 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043a\u0430, HDD \/ SSD \u0434\u0438\u0441\u043a<\/li>\n<li>\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0435\u043b\u043e\u0441\u044c \u0447\u0435\u0440\u0435\u0437 ApacheBench, concurrency level \u043e\u0442 1 \u0434\u043e 4096, 1 000 000 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0441\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c\u0438 \u043e\u0431\u0440\u0430\u0437\u043e\u043c<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0412 \u0445\u043e\u0434\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0438\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0433\u0440\u0430\u043d\u0438\u0447\u043d\u044b\u0435 \u0441\u043b\u0443\u0447\u0430\u0438:<\/p>\n<p>  <\/p>\n<ul>\n<li>GET \u0441 \u043f\u0440\u044f\u043c\u044b\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u043a PostgreSQL (\u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0438\u0434\u0435\u0442 \u0447\u0442\u0435\u043d\u0438\u0435 \u0411\u0414, JSON \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u0437 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b)<\/li>\n<li>GET \u0441 \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 BOLT DB (JSON \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d \u0432 BOLT DB)<\/li>\n<li>GET \u0441 \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 (JSON \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u0437 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b) <\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u041f\u0430\u0434\u0435\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u043f\u0440\u0438 \u0440\u043e\u0441\u0442\u0435 Concurrency Level \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e ApacheBench \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b\u0441\u044f \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435 \u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e &quot;\u043e\u0442\u044a\u0435\u0434\u0430\u043b \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f&quot;.<\/p>\n<p>  <\/p>\n<h3 id=\"get-s-pryamym-dostupom-k-postgresql-ssd-pri-kazhdom-zaprose-idet-chtenie-bd\">GET \u0441 \u043f\u0440\u044f\u043c\u044b\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u043a PostgreSQL SSD (\u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0438\u0434\u0435\u0442 \u0447\u0442\u0435\u043d\u0438\u0435 \u0411\u0414)<\/h3>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>Concurrency Level<\/th>\n<th>Requests per second<\/th>\n<th>Time per req.<\/th>\n<th>99% percentile<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>713.82 [#\/sec] (mean)<\/td>\n<td>1.401 [ms] (mean)<\/td>\n<td>2 [ms]<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>1914.61 [#\/sec] (mean)<\/td>\n<td>1.045 [ms] (mean)<\/td>\n<td>2 [ms]<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>3326.52 [#\/sec] (mean)<\/td>\n<td>1.202 [ms] (mean)<\/td>\n<td>2 [ms]<\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td>4599.95 [#\/sec] (mean)<\/td>\n<td>1.739 [ms] (mean)<\/td>\n<td>4 [ms]<\/td>\n<\/tr>\n<tr>\n<td>16<\/td>\n<td>4599.80 [#\/sec] (mean)<\/td>\n<td>3.478 [ms] (mean)<\/td>\n<td>9 [ms]<\/td>\n<\/tr>\n<tr>\n<td>128<\/td>\n<td>5243.76 [#\/sec] (mean)<\/td>\n<td>24.410 [ms] (mean)<\/td>\n<td>102 [ms]<\/td>\n<\/tr>\n<tr>\n<td>512<\/td>\n<td>5354.35 [#\/sec] (mean)<\/td>\n<td>95.623 [ms] (mean)<\/td>\n<td>506 [ms]<\/td>\n<\/tr>\n<tr>\n<td>2048<\/td>\n<td>5285.83 [#\/sec] (mean)<\/td>\n<td>387.451 [ms] (mean)<\/td>\n<td>2871 [ms]<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<h3 id=\"get-s-keshirovanie-v-bolt-db-json-predvaritelno-sohranen-v-bolt-db\">GET \u0441 \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 BOLT DB (JSON \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d \u0432 BOLT DB)<\/h3>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>Concurrency Level<\/th>\n<th>Requests per second<\/th>\n<th>Time per req.<\/th>\n<th>99% percentile<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>3411.07 [#\/sec] (mean)<\/td>\n<td>0.293 [ms] (mean)<\/td>\n<td>1 [ms]<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>7468.21 [#\/sec] (mean)<\/td>\n<td>0.268 [ms] (mean)<\/td>\n<td>1 [ms]<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>9501.15 [#\/sec] (mean)<\/td>\n<td>0.421 [ms] (mean)<\/td>\n<td>2 [ms]<\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td>10481.68 [#\/sec] (mean)<\/td>\n<td>0.763 [ms] (mean)<\/td>\n<td>3 [ms]<\/td>\n<\/tr>\n<tr>\n<td>16<\/td>\n<td>10052.14 [#\/sec] (mean)<\/td>\n<td>1.592 [ms] (mean)<\/td>\n<td>5 [ms]<\/td>\n<\/tr>\n<tr>\n<td>128<\/td>\n<td>10754.02 [#\/sec] (mean)<\/td>\n<td>11.903 [ms] (mean)<\/td>\n<td>20 [ms]<\/td>\n<\/tr>\n<tr>\n<td>512<\/td>\n<td>11030.61 [#\/sec] (mean)<\/td>\n<td>46.416 [ms] (mean)<\/td>\n<td>66 [ms]<\/td>\n<\/tr>\n<tr>\n<td>2048<\/td>\n<td>10634.72 [#\/sec] (mean)<\/td>\n<td>192.577 [ms] (mean)<\/td>\n<td>362 [ms]<\/td>\n<\/tr>\n<tr>\n<td>4096<\/td>\n<td>10659.04 [#\/sec] (mean)<\/td>\n<td>384.275 [ms] (mean)<\/td>\n<td>720 [ms]<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<h3 id=\"get-s-keshirovaniem-struktury-v-pamyati\">GET \u0441 \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0432 \u043f\u0430\u043c\u044f\u0442\u0438<\/h3>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>Concurrency Level<\/th>\n<th>Requests per second<\/th>\n<th>Time per req.<\/th>\n<th>99% percentile<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>9178.22 [#\/sec] (mean)<\/td>\n<td>0.109 [ms] (mean)<\/td>\n<td>1 [ms]<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>22580.40 [#\/sec] (mean)<\/td>\n<td>0.089 [ms] (mean)<\/td>\n<td>1 [ms]<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>36163.33 [#\/sec] (mean)<\/td>\n<td>0.111 [ms] (mean)<\/td>\n<td>1 [ms]<\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td>56109.17 [#\/sec] (mean)<\/td>\n<td>0.143 [ms] (mean)<\/td>\n<td>1 [ms]<\/td>\n<\/tr>\n<tr>\n<td>16<\/td>\n<td>43942.75 [#\/sec] (mean)<\/td>\n<td>0.364 [ms] (mean)<\/td>\n<td>2 [ms]<\/td>\n<\/tr>\n<tr>\n<td>128<\/td>\n<td>55005.53 [#\/sec] (mean)<\/td>\n<td>2.327 [ms] (mean)<\/td>\n<td>6 [ms]<\/td>\n<\/tr>\n<tr>\n<td>512<\/td>\n<td>35338.01 [#\/sec] (mean)<\/td>\n<td>14.489 [ms] (mean)<\/td>\n<td>25 [ms]<\/td>\n<\/tr>\n<tr>\n<td>2048<\/td>\n<td>38090.35 [#\/sec] (mean)<\/td>\n<td>53.767 [ms] (mean)<\/td>\n<td>228 [ms]<\/td>\n<\/tr>\n<tr>\n<td>4096<\/td>\n<td>30196.47 [#\/sec] (mean)<\/td>\n<td>135.645 [ms] (mean)<\/td>\n<td>609 [ms]<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/488948\/\"> https:\/\/habr.com\/ru\/post\/488948\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/488948\/\">\n<p>\u041d\u0430 \u0433\u043b\u0430\u0437\u0430 \u043f\u043e\u043f\u0430\u043b\u0430\u0441\u044c \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u043f\u043e\u0437\u0438\u0442\u0438\u0432\u043d\u043e\u0435 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 <a href=\"https:\/\/habr.com\/ru\/post\/424649\/\">Java vs GO. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439<\/a>. <\/p>\n<p>  <\/p>\n<p>\u0420\u0435\u0448\u0438\u043b \u0441\u0430\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043b\u0438 \u0442\u0430\u043a \u0432\u0441\u0435 \u043d\u0435 \u0440\u0430\u0434\u0443\u0436\u043d\u043e \u0441 Go.<br \/>  \u0417\u0430\u0431\u0435\u0433\u0430\u044f \u0432\u043f\u0435\u0440\u0435\u0434 \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u043f\u0440\u0438 \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 JSON &quot;\u043d\u0430 \u043b\u0435\u0442\u0443&quot; \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e 56000 [#\/sec] \u043d\u0430 4 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u044f\u0434\u0440\u0430.<br \/>  \u0418 \u043d\u0435 \u043e\u0434\u043d\u043e\u0433\u043e Failed requests \u0432\u043f\u043b\u043e\u0442\u044c \u0434\u043e 4096 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439. <\/p>\n<p>  <\/p>\n<p>\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 GET \u0437\u0430\u043f\u0440\u043e\u0441\u0430: <\/p>\n<p>  <\/p>\n<ul>\n<li>\u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u044b \u0432 in memory \u043a\u044d\u0448\u0435 \u0438 \u043e\u043d\u0438 \u0432\u0430\u043b\u0438\u0434\u043d\u044b\u0435, \u0442\u043e \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c JSON \u0438\u0437 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/li>\n<li>\u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043a\u044d\u0448\u0435 \u043d\u0435\u0442, \u0442\u043e \u0438\u0449\u0435\u043c \u0438\u0445 \u0432 Bolt DB, \u0435\u0441\u043b\u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u043c, \u0442\u043e \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 JSON <\/li>\n<li>\u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435\u0442 \u0432 Bolt DB, \u0442\u043e \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u0438\u0445 \u0438\u0437 \u0411\u0414, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438\u0445 \u0432 in memory \u043a\u044d\u0448\u0435<\/li>\n<li>\u0414\u0430\u043d\u043d\u044b\u0435 \u0432 in memory \u043a\u044d\u0448\u0435 \u043d\u0430\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u0431\u0443\u0444\u0435\u0440\u043d\u043e\u043c \u043a\u0430\u043d\u0430\u043b\u0435, \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u043e\u043a\u043e\u043b\u043e 10000 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043e\u043d\u0438 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0435\u0434\u0438\u043d\u044b\u043c save \u0432 Bolt DB<\/li>\n<li>\u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0411\u0414 \u043c\u0435\u043d\u044f\u043b\u0438\u0441\u044c (update \/ insert) \u0442\u043e \u0447\u0435\u0440\u0435\u0437 pg_notify \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u0442\u0441\u044f \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043a\u044d\u0448\u0435 \u043f\u043e\u043c\u0435\u0447\u0430\u043b\u0438\u0441\u044c \u043a\u0430\u043a \u043d\u0435\u0432\u0430\u043b\u0438\u0434\u043d\u044b\u0435 \u0438 \u043f\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043e\u043d\u0438 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u0437\u0430\u043d\u043e\u0432\u043e \u0438\u0437 \u0411\u0414 <\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0442\u0430\u043a \u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u043f\u043e <a href=\"https:\/\/github.com\/romapres2010\/resttest\/tree\/master\/cmd\/restDept\/Apach%20benchmark\" rel=\"nofollow\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a><br \/>  \u041a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d \u043a\u043e\u0434 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u0442\u0435\u043d\u0434\u0430 \u2014 \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043d\u0430 <a href=\"https:\/\/github.com\/romapres2010\/resttest\" rel=\"nofollow\">GitHub<\/a>.<br \/>  \u041a\u043e\u0434\u0430 \u043c\u043d\u043e\u0433\u043e \u043e\u043a\u043e\u043b\u043e 4000 \u0441\u0442\u0440\u043e\u043a, \u043d\u043e \u043d\u0438 \u0447\u0435\u0433\u043e \u0441\u0443\u043f\u0435\u0440 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u043d\u0435 \u0431\u044b\u043b\u043e.<br \/>  \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0440\u0430\u0437\u0432\u0435 \u0447\u0442\u043e \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0439 <a href=\"https:\/\/github.com\/francoispqt\/gojay\" rel=\"nofollow\">JSON encoder\/decode<\/a> \u2014 \u044d\u0442\u043e \u0443\u0441\u043a\u043e\u0440\u0438\u043b\u043e \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 JSON \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432 2 \u0440\u0430\u0437\u0430. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-298892","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/298892","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298892"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/298892\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}