Skip to content

create 100 million object cost lot of time #663

@moderafasas

Description

@moderafasas

Describe the bug
when i create 100 million object cost about 10 hour

To Reproduce
for (int i = 0; i < 100000000; i++) {
People person = new People();
person.setLevel(j);
person.setName(faker.name().fullName());
person.setCompany(faker.company().industry() + faker.company().buzzword());
person.setNation(faker.nation().nationality());
person.setPlace(faker.address().fullAddress());
person.setUniversity(faker.university().name());
person.setBlood(faker.name().bloodGroup());
person.setJob(faker.job().title());
person.setPhoneNum(faker.phoneNumber().cellPhone());
person.setBirthDay(DateUtils.get8DateString(faker.date().birthday().getTime()));
}

Expected behavior
create bigdata could be faster than now

Versions:

  • OS: Linux 64GB 1T
  • JDK 1.8
  • Faker Version 1.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions