Skip to content

dtrounine/android-singleton-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

android-singleton-test

Simple demonstration and performance test of various singleton implemetations on Android. Open the project in Android Studio and run it as Android instrumentation test.

Below are results of test runs on few devices.

  • Enum or Holder Class implemetations are always the fastest
  • Fully Synchronized is always the slowest one
  • Results obtained on Art (Android 5.1) and Dalvik (others) show different ranking of implementations.

About

Simple demonstration and performance test of various singleton implemetations on Android.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages