Commits

Jon Meredith  committed c2225ca

Added pareto_int_str keygen.

  • Participants
  • Parent commits 6a0a68c

Comments (0)

Files changed (1)

File src/basho_bench_keygen.erl

 new({pareto_int_bin, MaxKey}, _Id) ->
     Pareto = pareto(trunc(MaxKey * 0.2), ?PARETO_SHAPE),
     fun() -> <<(Pareto()):32/native>> end;
+new({pareto_int_str, MaxKey}, _Id) ->
+    Pareto = pareto(trunc(MaxKey * 0.2), ?PARETO_SHAPE),
+    fun() -> integer_to_list(Pareto()) end;
 new({truncated_pareto_int, MaxKey}, Id) ->
     Pareto = new({pareto_int, MaxKey}, Id),
     fun() -> erlang:min(MaxKey, Pareto()) end;