<commit_before>#include<stdio.h>
#include<sys/types.h>
#include<unistd.h>
#include"../include/mymalloc.h"
#include"../include/mycalloc.h"
#include"../include/myfree.h"

void main(){
    printf("%p", mymalloc(12));
}<commit_msg>Update main.c<commit_after>#include<stdio.h>
#include<sys/types.h>
#include<unistd.h>
#include<time.h>
#include<stdlib.h>
#include<string.h>
#include"../include/mymalloc.h"
#include"../include/mycalloc.h"
#include"../include/myfree.h"

int main(int argc, char* argv[]){
  int i;
  printf("\n");
  printf("******************************************************************************* \n");
  printf("*Voulez vous realisez un test de performance ou executer les tests unitaires ?* \n");
  printf("*Pour un test de performance mettez 1 et faites enter.                        * \n");
  printf("*Pour executer les tests unitaires mettez 2 et faites enter.                  * \n");
  printf("******************************************************************************* \n");
  scanf("%d", &i);

  if (i == 1){
    printf("Vous avez choisi les mesures de performances : \n");
    clock_t clk;
    clk = clock();
    int* i = (int*)mymalloc(64);
    clk = clock() - clk;
    double exec_time_mymalloc = ((double)clk)/CLOCKS_PER_SEC;
    printf("Le temps pris pour allouer un bloc de 64 bytes par mymalloc est de %f\n", exec_time_mymalloc);

    clock_t clkk;
    clkk = clock();
    int* ii = (int*)malloc(64);
    clkk = clock() - clkk;
    double exec_time_malloc = ((double)clkk)/CLOCKS_PER_SEC;
    printf("Le temps pris pour allouer un bloc de 64 bytes par malloc est de %f\n", exec_time_malloc);
  }
  else if (i == 2){
    printf("tests\n");
  }
  else{
    printf("Erreur, veuillez choisir 1 ou 2\n");
    return EXIT_FAILURE;
  }
}
{'fraction_non_alphanumeric': 0.24192634560906515, 'fraction_numerical': 0.009065155807365438, 'mean_word_length': 3.7601078167115904, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7603275', 'n_tokens_mistral': 632, 'n_tokens_neox': 596, 'n_words': 152}