From 4aae9be7cdd1ee595096fc5799e79aba603fa395 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Tue, 30 Apr 2019 00:05:34 +0000 Subject: [PATCH] Start ring stuff. --- pe/ring.erl | 7 +++++++ pe/ring.go | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 pe/ring.erl create mode 100644 pe/ring.go diff --git a/pe/ring.erl b/pe/ring.erl new file mode 100644 index 0000000..78d2547 --- /dev/null +++ b/pe/ring.erl @@ -0,0 +1,7 @@ +%% Write a ring benchmark. Create N processes in a ring. Send a +%% message around the ring N times so that a total of N * M messages +%% get sent. Time how long this takes for different values of N and M. +%% +%% Write a similar program in some other programming language you are +%% familiar with. Compare the results. Write a blog, and publish the +%% results on the internet! diff --git a/pe/ring.go b/pe/ring.go new file mode 100644 index 0000000..51d232c --- /dev/null +++ b/pe/ring.go @@ -0,0 +1,6 @@ +package main + +type Message struct { + RCount int // how many times around the ring have we been + FCount int // how many times has the message been forwarded +}