Skip to content

Instantly share code, notes, and snippets.

@jlouis
Created June 24, 2010 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlouis/451979 to your computer and use it in GitHub Desktop.
Save jlouis/451979 to your computer and use it in GitHub Desktop.
-module(tester).
-export([init/0, test/0]).
init() ->
ets:new(?MODULE, [named_table, public]),
ets:insert(?MODULE, [{K, foo} || K <- lists:seq(1,10000)]).
test() ->
[_] = ets:lookup(?MODULE, 37).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment