Skip to content

Instantly share code, notes, and snippets.

@si14
Created July 14, 2011 11:01
Show Gist options
  • Save si14/1082267 to your computer and use it in GitHub Desktop.
Save si14/1082267 to your computer and use it in GitHub Desktop.
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:0] [kernel-poll:true]
(circa_dev@si14-laptop)8> timer:tc(fun() -> [ecirca:push(T, X) || X <- lists:seq(1, 1000)], ok end).
{16863,ok}
(circa_dev@si14-laptop)9> timer:tc(fun() -> [ecirca:push(T, X) || X <- lists:seq(1, 1000)], ok end).
{17000,ok}
(circa_dev@si14-laptop)10> timer:tc(fun() -> [ecirca:push(T, X) || X <- lists:seq(1, 1000)], ok end).
{4093,ok} <---- WHY?
(circa_dev@si14-laptop)11> timer:tc(fun() -> [ecirca:push(T, X) || X <- lists:seq(1, 1000)], ok end).
{15959,ok}
(circa_dev@si14-laptop)12> timer:tc(fun() -> [ecirca:push(T, X) || X <- lists:seq(1, 1000)], ok end).
{17704,ok}
(circa_dev@si14-laptop)13> timer:tc(fun() -> [ecirca:push(T, X) || X <- lists:seq(1, 1000)], ok end).
{16551,ok}
(circa_dev@si14-laptop)14> timer:tc(fun() -> [ecirca:push(T, X) || X <- lists:seq(1, 1000)], ok end).
{16202,ok}
restart with +A 5...
(circa_dev@si14-laptop)2> timer:tc(fun() -> [ecirca:push(T, X) || X <- lists:seq(1, 1000)], ok end).
{7829,ok} <---- WHY?
(circa_dev@si14-laptop)3> timer:tc(fun() -> [ecirca:push(T, X) || X <- lists:seq(1, 1000)], ok end).
{4237,ok} <---- WHY?
(circa_dev@si14-laptop)4> timer:tc(fun() -> [ecirca:push(T, X) || X <- lists:seq(1, 1000)], ok end).
{16322,ok}
(circa_dev@si14-laptop)5> timer:tc(fun() -> [ecirca:push(T, X) || X <- lists:seq(1, 1000)], ok end).
{15585,ok}
(circa_dev@si14-laptop)6> timer:tc(fun() -> [ecirca:push(T, X) || X <- lists:seq(1, 1000)], ok end).
{15971,ok}
(circa_dev@si14-laptop)7> timer:tc(fun() -> [ecirca:push(T, X) || X <- lists:seq(1, 1000)], ok end).
{14517,ok}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment