{"action":"opened","issue":{"url":"https://api.github.com/repos/influxdb/influxdb-java/issues/139","labels_url":"https://api.github.com/repos/influxdb/influxdb-java/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/influxdb-java/issues/139/comments","events_url":"https://api.github.com/repos/influxdb/influxdb-java/issues/139/events","html_url":"https://github.com/influxdb/influxdb-java/issues/139","id":123283103,"number":139,"title":"Number of written items in PerformanceTests#maxWritePointsPerformance","user":{"login":"hkrizek","id":577137,"avatar_url":"https://avatars.githubusercontent.com/u/577137?v=3","gravatar_id":"","url":"https://api.github.com/users/hkrizek","html_url":"https://github.com/hkrizek","followers_url":"https://api.github.com/users/hkrizek/followers","following_url":"https://api.github.com/users/hkrizek/following{/other_user}","gists_url":"https://api.github.com/users/hkrizek/gists{/gist_id}","starred_url":"https://api.github.com/users/hkrizek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkrizek/subscriptions","organizations_url":"https://api.github.com/users/hkrizek/orgs","repos_url":"https://api.github.com/users/hkrizek/repos","events_url":"https://api.github.com/users/hkrizek/events{/privacy}","received_events_url":"https://api.github.com/users/hkrizek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-21T13:52:12Z","updated_at":"2015-12-21T13:52:12Z","closed_at":null,"body":"I try to do some performance tests with influxdb-java 2.1 and influxdb-0.9.6.1.\r\nIn influxdb-java repository there is PerformanceTests class with maxWritePointsPerformance method. I tried to run this with some slight changes to find out how fast points are written and if number of written items are really written to db.\r\n```java\r\n@Test(enabled = true)\r\n\tpublic void maxWritePointsPerformance() {\r\n\t\tString dbName = \"d\";\r\n\t\tthis.influxDB.createDatabase(dbName);\r\n\t\tthis.influxDB.enableBatch(1000, 60, TimeUnit.SECONDS);\r\n\t\tint count = 100000;\r\n\t\tStopwatch watch = Stopwatch.createStarted();\r\n\t\tfor (int i = 0; i < count; i++) {\r\n\t\t\tPoint point = Point.measurement(\"s\").field(\"v\", 1).build();\r\n\t\t\tthis.influxDB.write(dbName, \"default\", point);\r\n\t\t}\r\n\t\tSystem.out.println(count + \" points:\" + watch);\r\n\t\tQuery query = new Query(\"select count(v) FROM s\", dbName);\r\n        System.out.println(this.influxDB.query(query));\r\n\t\tthis.influxDB.deleteDatabase(dbName);\r\n\t}\r\n```\r\n\r\nThe result is that not all items are written to db:\r\n```\r\nRunning org.influxdb.PerformanceTests\r\n100000 points:5,553 s\r\nQueryResult [results=[Result [series=[Series [name=s, tags=null, columns=[time, count], values=[[1970-01-01T00:00:00Z, 162.0]]]], error=null\r\n]], error=null]\r\nTests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.491 sec\r\n```\r\n\r\nThis is probably caused by Point.build() function, where same timestamp is used for several items.\r\n\r\nDoes anybody have any serious performance tests and results with influxdb-java-2.1? \r\n"}}