Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Benchmark for real-world scenarios for Promises/A+ & alternatives

License

Notifications You must be signed in to change notification settings

robotlolita/promises-benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Quildreen Motta
Nov 23, 2013
007c9c2 · Nov 23, 2013

History

30 Commits
Jul 7, 2013
Nov 12, 2013
Jul 12, 2013
Jun 30, 2013
Jun 29, 2013
Jul 12, 2013
Jun 30, 2013
Jul 12, 2013
Jul 12, 2013
Jun 30, 2013
Nov 12, 2013
Jul 7, 2013

Repository files navigation

Promises Benchmarks

This project provides benchmarks for real-world scenarios of asynchronous concurrency and the alternatives to encode these scenarios in JavaScript (Node.js).

Running

$ git clone git://github.com/killdream/promises-benchmark
$ cd promises-benchmark
$ npm install
$ make benchmark

You can run make benchmark-harmony to run tests with semi-coroutines by way of Harmony generators. Just note that this will only work on Node v0.11.2. You can use n to make that easier for you ;3

Scenarios

  1. Processing tweets to discover trends and topic relationships.

The application searches the latest 100 tweets for a topic (hashtag), and scrapes all topics that are related to the initial one, as well as noting which users are talking about which topic. In the end, the program presents a summary that shows the trends and relationships between those topics and people. Everything is done in real-time, without caching.

  1. Hot-compilation of development assets.

A web server provides end-points to compile development resources (in this case, Browserify bundles) on-the-go, and caches the results such that people don't need to wait a full minute for each reload. All responses are asynchronously sent over HTTP.

  1. Processing lists of mixed timed values.

Data-processing functions work on a List that might contain either asynchronous values or synchronous values. The synchronous values might be the result of a memoised function for performance reasons.

Licence

MIT. Do whatever you want.

About

Benchmark for real-world scenarios for Promises/A+ & alternatives

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published