All Downloads are FREE. Search and download functionalities are using the official Maven repository.

goog.pubsub.pubsub_perf.html Maven / Gradle / Ivy

Go to download

The Google Closure Library is a collection of JavaScript code designed for use with the Google Closure JavaScript Compiler. This non-official distribution was prepared by the ClojureScript team at http://clojure.org/

There is a newer version: 0.0-20230227-c7c0a541
Show newest version






  Closure Performance Tests - goog.pubsub.PubSub
  
  
  


  

goog.pubsub.PubSub Performance Tests

User-agent:

Compares the performance of the event system (goog.events.*) with the goog.pubsub.PubSub class.

The baseline test creates 1000 event targets and 1000 objects that handle events dispatched by the event targets, and has each event target dispatch 2 events 5 times each.

The single-PubSub test creates 1000 publishers, 1000 subscribers, and a single pubsub channel. Each subscriber subscribes to topics on the same pubsub channel. Each publisher publishes 5 messages to 2 topics each via the pubsub channel.

The multi-PubSub test creates 1000 publishers that are subclasses of goog.pubsub.PubSub and 1000 subscribers. Each subscriber subscribes to its own publisher. Each publisher publishes 5 messages to 2 topics each via its own pubsub channel.






© 2015 - 2025 Weber Informatics LLC | Privacy Policy