Loading .gitignore 0 → 100644 +2 −0 Original line number Diff line number Diff line out/ build/ README.org +17 −2 Original line number Diff line number Diff line * COMMENT -*- mode: org -*- #+Date: 2016-12-16 Time-stamp: <2017-01-26> Time-stamp: <2019-02-23> * database binding benchmark I want to know the efficiency of the db binding for different language, Loading Loading @@ -34,7 +34,7 @@ all build is release mode (with -O or equivalent). - Remarks: - python and go's db binding is as fast as C. - rust, haskell, cl is slower. C is 1.5x faster. - racket is much slower. C is 5x faster. - racket is much slower. C is 5x faster than racket. ** postgres 9.4, cpython 2.7, psycopg2==2.6.1 http://initd.org/psycopg/docs/usage.html Loading Loading @@ -163,3 +163,18 @@ https://www.postgresql.org/docs/9.4/static/libpq.html 0.54 28.51 no effect. ** 2019-02-23 on new ryzen5 PC. postgres 9.6 on M2 SSD. openjdk 1.8.0_162, jdbc postgresql 42.2.5 warming up JVM... select time cost: 0.29s update time cost: 2.68s -- warming up JVM... select time cost: 0.27s update time cost: 2.67s -- select time cost: 0.35s update time cost: 2.72s -- select time cost: 0.33s update time cost: 2.75s -- java-jdbc/Makefile 0 → 100644 +3 −0 Original line number Diff line number Diff line run: PG_T1_PASSWORD="62IWgtWiPCZdt8qu" ./gradlew build run .PHONY: run java-jdbc/build.gradle 0 → 100644 +34 −0 Original line number Diff line number Diff line /* * This file was generated by the Gradle 'init' task. * * This generated file contains a sample Java project to get you started. * For more details take a look at the Java Quickstart chapter in the Gradle * user guide available at https://docs.gradle.org/4.6/userguide/tutorial_java_projects.html */ plugins { // Apply the java plugin to add support for Java id 'java' // Apply the application plugin to add support for building an application id 'application' } // Define the main class for the application mainClassName = 'App' dependencies { // This dependency is found on compile classpath of this component and consumers. // compile 'com.google.guava:guava:23.0' compile group: 'org.postgresql', name: 'postgresql', version: '42.2.5' // Use JUnit test framework testCompile 'junit:junit:4.12' } // In this section you declare where to find the dependencies of your project repositories { // Use jcenter for resolving your dependencies. // You can declare any Maven/Ivy/file repository here. jcenter() } java-jdbc/gradle/wrapper/gradle-wrapper.properties 0 → 100644 +5 −0 Original line number Diff line number Diff line distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists Loading
README.org +17 −2 Original line number Diff line number Diff line * COMMENT -*- mode: org -*- #+Date: 2016-12-16 Time-stamp: <2017-01-26> Time-stamp: <2019-02-23> * database binding benchmark I want to know the efficiency of the db binding for different language, Loading Loading @@ -34,7 +34,7 @@ all build is release mode (with -O or equivalent). - Remarks: - python and go's db binding is as fast as C. - rust, haskell, cl is slower. C is 1.5x faster. - racket is much slower. C is 5x faster. - racket is much slower. C is 5x faster than racket. ** postgres 9.4, cpython 2.7, psycopg2==2.6.1 http://initd.org/psycopg/docs/usage.html Loading Loading @@ -163,3 +163,18 @@ https://www.postgresql.org/docs/9.4/static/libpq.html 0.54 28.51 no effect. ** 2019-02-23 on new ryzen5 PC. postgres 9.6 on M2 SSD. openjdk 1.8.0_162, jdbc postgresql 42.2.5 warming up JVM... select time cost: 0.29s update time cost: 2.68s -- warming up JVM... select time cost: 0.27s update time cost: 2.67s -- select time cost: 0.35s update time cost: 2.72s -- select time cost: 0.33s update time cost: 2.75s --
java-jdbc/Makefile 0 → 100644 +3 −0 Original line number Diff line number Diff line run: PG_T1_PASSWORD="62IWgtWiPCZdt8qu" ./gradlew build run .PHONY: run
java-jdbc/build.gradle 0 → 100644 +34 −0 Original line number Diff line number Diff line /* * This file was generated by the Gradle 'init' task. * * This generated file contains a sample Java project to get you started. * For more details take a look at the Java Quickstart chapter in the Gradle * user guide available at https://docs.gradle.org/4.6/userguide/tutorial_java_projects.html */ plugins { // Apply the java plugin to add support for Java id 'java' // Apply the application plugin to add support for building an application id 'application' } // Define the main class for the application mainClassName = 'App' dependencies { // This dependency is found on compile classpath of this component and consumers. // compile 'com.google.guava:guava:23.0' compile group: 'org.postgresql', name: 'postgresql', version: '42.2.5' // Use JUnit test framework testCompile 'junit:junit:4.12' } // In this section you declare where to find the dependencies of your project repositories { // Use jcenter for resolving your dependencies. // You can declare any Maven/Ivy/file repository here. jcenter() }
java-jdbc/gradle/wrapper/gradle-wrapper.properties 0 → 100644 +5 −0 Original line number Diff line number Diff line distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists