HelloKt
1.0.0
Mein Kotlin -Spielplatz:
WeakHashMap : ConcurrentModificationException und GCWeakHashMap : Der Kopie -Overhead von WeakHashMapThreadPoolExecutorAhoCorasickDoubleArrayTrie Performance DemoWeakHashMap : ConcurrentModificationException und GC Wenn in der Iteration der WeakHashMap WeakHashMap gc , wird die Iteration WeakHashMap ConcurrentModificationException veranstaltet?
Demo -Ergebnis: Nein.
Demo -Code: WeakHashMapGcIteration
./gradlew execTestMain -P mainClass=playground.weakhashmap.WeakHashMapGcIterationKtWeakHashMap : Der Kopie -Overhead von WeakHashMap Demo -Ergebnis: Kopieren Sie ~ 30m Elemente pro Sekunde.
Test auf meinem MacBookPro16 (Intel Core i9).
Demo -Code: WeakHashMapCopyOverheadDemo
./gradlew execTestMain -P mainClass=playground.weakhashmap.WeakHashMapCopyOverheadDemoKtThreadPoolExecutorErgebnis:
durchschnittliche Warteschlange Zeit = Warteschlangengröße / MaximumphoolSize * Durchschnittliche Aufgabenausführungszeit
Demo -Code: TaskQueueTimeThreadPoolExecutorDemo
./gradlew execTestMain -P mainClass=playground.threadpool.TaskQueueTimeThreadPoolExecutorDemoKtAhoCorasickDoubleArrayTrie Performance Demo AhoCorasickDoubleArrayTrie Performance einfache Demo.
Ergebnis: Drücken Sie die Suche ~ O (1) auf die Größe des Suchwörterbuchs.
Democode: AhoCorasickDoubleArrayTrieDemo
./gradlew execTestMain -P mainClass=playground.text.AhoCorasickDoubleArrayTrieDemoKt