Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test nagoya-university-conversation-corpus: reduce checking #217

Conversation

tikkss
Copy link
Contributor

@tikkss tikkss commented Sep 5, 2024

GitHub: GH-188

Because text file is too big (134,555 rows in total).

Before this change:

$ time ruby test/run-test.rb -t NagoyaUniversityConversationCorpusTest --verbose=important-only
Finished in 3.65658 seconds.
4 tests, 4 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0
notifications

real    0m4.550s
user    0m3.723s
sys     0m0.568s

After this change:

$ time ruby test/run-test.rb -t NagoyaUniversityConversationCorpusTest --verbose=important-only
Finished in 0.060458 seconds.
4 tests, 4 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0
notifications

real    0m0.613s
user    0m0.428s
sys     0m0.096s

GitHub: red-data-toolsGH-188

Because text file is too big (134,555 rows in total).

Before this change:

```console
$ time ruby test/run-test.rb -t NagoyaUniversityConversationCorpusTest --verbose=important-only
Finished in 3.65658 seconds.
4 tests, 4 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0
notifications

real    0m4.550s
user    0m3.723s
sys     0m0.568s
```

After this change:

```console
$ time ruby test/run-test.rb -t NagoyaUniversityConversationCorpusTest --verbose=important-only
Finished in 0.060458 seconds.
4 tests, 4 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0
notifications

real    0m0.613s
user    0m0.428s
sys     0m0.096s
```
],
[
first_participants.size,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can also keep this.

Because does not iterates to last in the text files, so we can keep the
execution time.

Before this change:

```console
$ time ruby test/run-test.rb -t NagoyaUniversityConversationCorpusTest --verbose=important-only
Finished in 0.060458 seconds.
4 tests, 4 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0
notifications

real    0m0.613s
user    0m0.428s
sys     0m0.096s
```

After this change:

```console
$ time ruby test/run-test.rb -t NagoyaUniversityConversationCorpusTest --verbose=important-only
Finished in 0.062095 seconds.
4 tests, 4 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0
notifications

real    0m0.622s
user    0m0.430s
sys     0m0.103s
```

Co-authored-by: Sutou Kouhei <[email protected]>
@kou kou merged commit ec2b2ee into red-data-tools:master Sep 6, 2024
12 checks passed
@kou
Copy link
Member

kou commented Sep 6, 2024

Thanks.

@tikkss tikkss deleted the test-nagoya-university-conversation-corpus-reduce-checking branch September 6, 2024 22:11
@tikkss
Copy link
Contributor Author

tikkss commented Sep 6, 2024

Thanks for your quick review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants